How to save imshowpair figure?
3 views (last 30 days)
Show older comments
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?
0 Comments
Answers (2)
KALYAN ACHARJYA
on 23 Sep 2019
Edited: KALYAN ACHARJYA
on 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.
0 Comments
darova
on 23 Sep 2019
You can use saveas
saveas(gcf,'test.jpg', 'jpg')
% saveas(gcf,'test.fig', 'fig') % save as MATLAB figure
0 Comments
See Also
Categories
Find more on Printing and Saving in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!