Save Fig In png. format

조회 수: 2 (최근 30일)
Somnath Kale
Somnath Kale 2020년 12월 6일
답변: Image Analyst 2020년 12월 6일
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')

답변 (2개)

KSSV
KSSV 2020년 12월 6일

Image Analyst
Image Analyst 2020년 12월 6일
Try
folder = 'C:\Users\IISER BPR\Documents\MATLAB\Instrument program\CurrentSourceVoltmeter\Data';
fullFileName = fullfile(folder, 'Screenshot.png'); % Whatever name you want.
exportgraphics(gcf, fullFileName);

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by