In Matlab, how do I plot irregularly spaced data?
To plot irregularly spaced data in Matlab, use the
griddata command.
Assume that a is a matrix with three columns, and that
each row gives the three coordinates for one data point. The example
below plots a surface that passes through each of the points given by
a:
For more information about statistical and mathematical software, email the UITS Stat/Math Center, visit the center's web page, or phone 812-855-4724 (IUB) or 317-278-4740 (IUPUI). The center is located in Bloomington at 410 N. Park Avenue, and is open for consultation by appointment Monday-Friday 9am-5pm.
Last modified on October 01, 2009.







