How to open a dialog box when saving multiple figures?
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I have few figures which I want to save togethe and array 'H' of their handles.
The comand:
savefig(H,File_Name)
Will save them to 'File_Name.fig' at the GUI default directory.
Is there a way to open a dialog box to specify file name, directory and even to abort the operation?
I think I covered all 'save file' options but couldn't figure it out.
Thanks,
Alon
回答(1 个)
Subhadeep Koley
2020-2-13
Here is an example
close all; clc;
H = figure;
surf(peaks);
filter = {'*.fig'};
savefig(H, uiputfile(filter));
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!