plot graph figures as binary image
2 ビュー (過去 30 日間)
古いコメントを表示
If I want to plot a figure and save as binary image in jpg or png file, what command should I use?
0 件のコメント
回答 (2 件)
Image Analyst
2020 年 12 月 24 日
The preferred way for R2020a and later is:
exportgraphics(gcf, 'MyFigure.png'); % Or can use gca for the axis (not the whole figure);
Zhang Qingyang
2020 年 12 月 24 日
saveas
such as
saveas(gca,'Filename.jpg');
gca is the handle of you current axis
0 件のコメント
参考
カテゴリ
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!