Surface fitting toolbox
2 views (last 30 days)
Show older comments
I have created a plot using surface fitting toolbox and everything is fine as far as what I was looking for. Now, the problem I am facing is, that I would like to use this plot as part of my presentation, but I dont see any way to save this graphic as jpg or bmp or pdf or any other format. Also, I would like to get rid of those data points (blue round data points) and would like to only keep my polynomial surface as a graph.
Does anyone have any idea? I can send the file and code if needed.
Thanks Kaushal
0 Comments
Accepted Answer
Jiro Doke
on 18 Feb 2011
There are a couple of ways you can do this.
1. From the "Fit" menu, select "Save to Workspace...". This will allow you to save the fitted model as a variable in the MATLAB workspace. Then you can plot by typing
plot(fittedmodel)
2. From "File" menu, select "Generate Code". This will create a MATLAB function, which you can call programmatically to generate the model. The first output of that function is the model. Then you can plot it as in #1 above.
0 Comments
More Answers (1)
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!