How to save imshowpair figure?
Afficher commentaires plus anciens
I want to save the figure of imshowpair. How to do that? My code is like this. Which function I should use for saving these figure and where to put it?

Réponses (2)
KALYAN ACHARJYA
le 23 Sep 2019
Modifié(e) : KALYAN ACHARJYA
le 23 Sep 2019
fig=gcf
imwrite(fig,'image_result.tif'); % Change format as per requirements
This code save the current figure window in current working directory.
darova
le 23 Sep 2019
You can use saveas
saveas(gcf,'test.jpg', 'jpg')
% saveas(gcf,'test.fig', 'fig') % save as MATLAB figure
Catégories
En savoir plus sur Import, Export, and Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!