Saving a figure to a specific location
Show older comments
Hello! I am using app designer and am trying to save a figure named app.UIAxes as a JPEG to this file location C:\Users\jmoor\OneDrive\Documents\MATLAB\FigureExport. I understand there is probably a fairly straight forward solution, but I have been struggling to create some code without any errors. Any help would be much appreciated!
Answers (1)
KSSV
on 10 Sep 2020
fpath = 'C:\Users\jmoor\OneDrive\Documents\MATLAB\FigureExport';
filename = 'test' ;
saveas(gca, fullfile(fname, filename), 'jpeg');
1 Comment
Jonathan Moorman
on 10 Sep 2020
Categories
Find more on Develop Apps Using App Designer 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!