Change print format of all output figures using one command
1 次查看(过去 30 天)
显示 更早的评论
Hello, I am using the following command to print my figures into jpeg format.
print('-djpeg', '-r300', fig.1);
I have around 50 figures in my script. How can I change the format from jpeg to any other format for all the figures at once (without changing it for every figure) ?
Thanks
2 个评论
回答(1 个)
Henrik
2014-12-15
So you have this command 50 places in the script?
A quick fix would be to do a search and replace for print('-djpeg' --> print('-epsc' (or whatever format you want)
It would probably be a good idea to try and either use functions or some kind of loop to make all those figures, since as you've discovered, this way it's hard to change the code.
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!