28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

griddatan<br />

2griddatan<br />

Purpose Data gridding and hypersurface fitting (dimension >= 2)<br />

Syntax yi = griddatan(X,y,xi)<br />

yi = griddatan(x,y,z,v,xi,yi,zi,method)<br />

yi = griddatan(x,y,z,v,xi,yi,zi,method,options)<br />

Description yi = griddatan(X, y, xi) fits a hyper-surface of the form y = f( X)<br />

to the<br />

data in the (usually) nonuniformly-spaced vectors (X, y). griddatan<br />

interpolates this hyper-surface at the points specified by xi to produce yi. xi<br />

can be nonuniform.<br />

2-998<br />

X is of dimension m-by-n, representing m points in n-dimensional space. y is of<br />

dimension m-by-1, representing m values of the hyper-surface f (X). xi is a vector<br />

of size p-by-n, representing p points in the n-dimensional space whose surface<br />

value is to be fitted. yi is a vector of length p approximating the values f<br />

(xi).<br />

The hypersurface always goes through the data points (X,y). xi is usually a<br />

uniform grid (as produced by meshgrid).<br />

yi = griddatan(x,y,z,v,xi,yi,zi,method) defines the type of surface fit to<br />

the data, where 'method' is one of:<br />

'linear' Tessellation-based linear interpolation (default)<br />

'nearest' Nearest neighbor interpolation<br />

All the methods are based on a Delaunay tessellation of the data.<br />

If method is [], the default 'linear' method is used.<br />

yi = griddatan(x,y,z,v,xi,yi,zi,method,options) specifies a cell array of<br />

strings options to be used in Qhull via delaunayn.<br />

If options is [], the default options are used. If options is {''}, no options are<br />

used, not even the default.<br />

Algorithm The griddatan methods are based on a Delaunay triangulation of the data that<br />

uses Qhull [2]. For information about Qhull, see http://www.qhull.org/. For<br />

copyright information, see http://www.qhull.org/COPYING.txt.<br />

See Also delaunayn, griddata, griddata3, meshgrid

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!