modelMkPlotDataSurf2d

Extends from ApproxSpline.Plot.plotDataSurf2d (create data structs to be plotted in MATLAB).

Parameters

TypeNameDefaultDescription
Booleanrectangular (from plotDataSurf2d)falseset true if input data is on rectangular grid, otherwise assume scattered data
Integern (from plotDataSurf2d)20number of data points to plot
Stringfilename (from plotDataSurf2d)"surf2d.mat"name of MATLAB formated output file
Real[:,:]data (from plotDataSurf2d)scattered data to be fitted: [x,y,z,w] (w is optional weight)
Reals (from plotDataSurf2d)0smoothing factor (s>0)
Integerkx (from plotDataSurf2d)3degree of X-dir spline (should be odd)
Integerky (from plotDataSurf2d)3degree of Y-dir spline (should be odd)
Real[2]x_lim (from plotDataSurf2d){if rectangular then ApproxSpline.Utilities.vmin(data[2:size(data, 1), 1]) else ApproxSpline.Utilities.vmin(data[:, 1]), if rectangular then ApproxSpline.Utilities.vmax(data[2:size(data, 1), 1]) else ApproxSpline.Utilities.vmax(data[:, 1])}X-dir boundaries of interpolation interval
Real[2]y_lim (from plotDataSurf2d){if rectangular then ApproxSpline.Utilities.vmin(data[1, 2:size(data, 2)]) else ApproxSpline.Utilities.vmin(data[:, 2]), if rectangular then ApproxSpline.Utilities.vmax(data[1, 2:size(data, 2)]) else ApproxSpline.Utilities.vmax(data[:, 2])}Y-dir boundaries of interpolation interval
Real[:]tx (from plotDataSurf2d)fill(0, 0)array of X-dir knot positions (if given together with ty, a least square spline is generated)
Real[:]ty (from plotDataSurf2d)fill(0, 0)array of Y-dir knot positions (if given together with ty, a least square spline is generated)

Components

TypeNameDefaultDescription
Realnk (from plotDataSurf2d)number of knots in both directions