how to plot and save graphs in one folder?
2 次查看(过去 30 天)
显示 更早的评论
i have saved my file here as 452.txt . I want to plot my graphs in some what similiar way as file.JPG and save all figures into one folder (Folder name="Figures') and name of each figure should be as ('1') ('2') ('3')
inputdata=('S11ouput')
freq=inputdata=(:,1);
sparam=inputdata(:,2);
plot(freq,sparam);ylabel('sparam');xlabel('freq')
% my freq is in GHz and sparam are in approx 1e^-3
% how to get ylim in decimal places like 0.00032 0.00034 0.00035
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/990845/image.jpeg)
0 个评论
回答(1 个)
Image Analyst
2022-5-8
Create a filename somehow, like with sprintf(). Then use exportgraphics() to save your axes or figure to disk.
4 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!