In MATLAB, my figure looks exactly how I want it to look in the figure window. However, when I save the figure as a PNG file, the resulting PNG inage is rotated 90 degrees. How can I make sure that the PNG looks exactly like the figure?
I use the following command to save my figure, "fig", as a PNG:
>> print(fig,'-dpng',pngName);
Best Answer