MATLAB: How to save “corrplot” figures

correlation plots

Hello! I have a question about the corrplot figures. How can I save my corrplot figures as a png file using the "save" function? For some reason, corrplot does not like to be saved unless I do it manually from the top left corner, clicking "save as…".
Thanks in advance,
Tutku

Best Answer

Have you tried this?
saveas(gcf,'filename.png'); %Use to display save as image