- In Surface Fitting Tool, select File->Generate Code.
- Save the file that this produces in the editor (it defaults to "createFit").
- In the Command Window, run the file you saved, using the same variables that you used for the fit:
Retrieve the figure from the surface fitting tool
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I made a 3D plot and used the surface fitting tool to make a model of the surface. Now I want to save the plot in order to include it as a figure (jpeg, png, tiff or other) in my presentation (only the plot without the rest of the fitting tool)- I could not find how to do that.
Thanks for helping
0 件のコメント
採用された回答
Richard
2011 年 5 月 19 日
If you generate code from your fit, and then run that code, it will produce the same set of plots that you originally had but in a standard MATLAB figure.
createFit(myXData, myYData, myZData)
This will create a figure and from here you can use any of the normal export tools for capturing an image, e.g. Edit->Copy Figure or File->Save As.
その他の回答 (1 件)
Arnaud Miege
2011 年 5 月 19 日
Use File -> Generate Code to generate some MATLAB code that you can re-execute with different data. The generate MATLAB code will produce a standard MATLAB figure that you can interact with in the standard way, e.g. export to JPG, etc...
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!