Clear Filters
Clear Filters

Surface fitting toolbox

9 views (last 30 days)
KKR
KKR on 18 Feb 2011
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

Accepted Answer

Jiro Doke
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.

More Answers (1)

KKR
KKR on 24 Feb 2011
Sorry for late response. This worked!!
Thanks, Jiro. I appreciate it.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!