开发者

How to save image of a histogram?

I have created a histogram using (hist开发者_如何学Python) function... after that, I need to save created image in a file *.png (jpeg) ? Using what function can I do this?

thx


To save a figure as an image you can use the functions PRINT or SAVEAS, or you can use the figure menu option File -> Save.

For more information on exporting figures from MATLAB, check out this documentation.


I usually use something similar to:

print('-f1','-dtiff','file_name');

to print the figure 1 (-f1) ... anyway check the help for a best description of print and you will find the right driver (-d option) for the type of file you need and extra options

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜