| Contents | Index |
[XOut, YOut, ZOut] = prepareSurfaceData(XIn,
YIn, ZIn)
[XOut, YOut, ZOut, WOut] = prepareSurfaceData(XIn,
YIn, ZIn, WIn)
[XOut, YOut, ZOut] = prepareSurfaceData(XIn, YIn, ZIn) transforms data, if necessary, for surface fitting with the fit function. The function transforms data as follows:
For table data, transform row (YIn) and column (XIn) headers into arrays YOut and XOut that are the same size as ZIn. Warn if XIn and YIn are reversed.
Return data as columns regardless of the input shapes. Error if the number of elements do not match. Warn if the number of elements match, but the sizes are different.
Convert complex to real (remove imaginary parts) and warn of this conversion.
Remove NaN or Inf from data and warn of this removal.
Convert nondouble to double and warn of this conversion.
[XOut, YOut, ZOut, WOut] = prepareSurfaceData(XIn, YIn, ZIn, WIn) transforms data including weights (WIn) for surface fitting with the fit function.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |