Saving a figure to a specific location
85 views (last 30 days)
Show older comments
Commented: Jonathan Moorman on 10 Sep 2020
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!
KSSV on 10 Sep 2020
fpath = 'C:\Users\jmoor\OneDrive\Documents\MATLAB\FigureExport';
filename = 'test' ;
saveas(gca, fullfile(fname, filename), 'jpeg');
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!