Clear Filters
Clear Filters

How to save result images?

1 view (last 30 days)
Sajina Rose
Sajina Rose on 1 Oct 2019
Answered: Walter Roberson on 1 Oct 2019
I need to write the output figures in seperate folder........can anyone please help me...?

Accepted Answer

Walter Roberson
Walter Roberson on 1 Oct 2019
output_folder = 'C:\Users\Sajina\Documents\MATLAB\Project9\outputs';
outfile = fullfile(output_folder, 'fig1.png');
saveas(gcf, outfile);
the file will be written into the named directory.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!