How do I access the data when I do surface fitting in Curve Fitting Toolbox 2.0 (R2009a)?
1 view (last 30 days)
Show older comments
I have used SFTOOL for surface fitting. I do not know how to access the fitted Z-data when I use LOWESS as fit type and export the fit to workspace.
Accepted Answer
MathWorks Support Team
on 30 Jan 2013
When you export the fit to workspace using the default names you will receive an sfit object called “fittedmodel”. To access and compute the Z-data for the fitted surface use MESHGRID to generate X and Y arrays for the surface and then use the sfit object to compute the Z-data:
[X,Y]= meshgrid(x,y); % x and y are vectors
Z=fittedmodel(X,Y);
0 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!