Borrar filtros
Borrar filtros

Save Fig In png. format

11 visualizaciones (últimos 30 días)
Somnath Kale
Somnath Kale el 6 de Dic. de 2020
Respondida: Image Analyst el 6 de Dic. de 2020
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')

Respuestas (2)

KSSV
KSSV el 6 de Dic. de 2020

Image Analyst
Image Analyst el 6 de Dic. de 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);

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by