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
精彩评论