Save Fig In png. format
Show older comments
I wanted to save my fig in .png format. from .fig format can you please suggest. I'm providing here my code.
savefig(OPGraphName) ;
movefile(OPGraphName, 'C:\Users\IISER BPR\Documents\MATLAB\Instrument program\CurrentSourceVoltmeter\Data')
Answers (2)
KSSV
on 6 Dec 2020
0 votes
Read about saveas
Image Analyst
on 6 Dec 2020
Try
folder = 'C:\Users\IISER BPR\Documents\MATLAB\Instrument program\CurrentSourceVoltmeter\Data';
fullFileName = fullfile(folder, 'Screenshot.png'); % Whatever name you want.
exportgraphics(gcf, fullFileName);
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!