Addition: It appears that saveas works for .fig and .m format. However, none of the bitmat image file formats nor the vector graphics file formats works.
Error using saveas (line 179) Unsupported format or extension: png
22 ビュー (過去 30 日間)
古いコメントを表示
Hi
I recently upgraded from MATLAB 2017b to 2019b. And now I can't get the saveas function to work. When using the example from the documentation, see below, I get the error that you see in the Question title. Hope you can help me!
x = [2 4 7 2 4 5 2 5 1 4];
bar(x);
saveas(gcf,'Barchart.png')
3 件のコメント
採用された回答
その他の回答 (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!