How to save whole output of the script? (387 figures grouped into one figure window, each figure in its own tab)

4 次查看(过去 30 天)
Hello,
So my code outputs 387 plots from 3 different loops (each loop provides 128 plots) + 3 separate graphs each made using separate code.
After code is executed, I receive one figure window with 387 tabs. But I want to save all tabs so that I do not have to run the code every time I need a plot (takes minutes to run).
I tried saving each figure on its own (so every loop count provides 1 graph), but even with proper naming organizing such pile of files is a pain (I need to use this code on different files resulting in a lot of folders each containing 368 files).
So I was thinking of how to save this whole window as .fig file, is that possible? Or at least save values from each loop as a fig with 128 graphs, even that would help.
Also, here is the code I use to display figures in the way I want:
set(0,'defaultaxesfontsize',25, 'defaultLineLineWidth',3 ,'defaultaxeslinewidth',3,'defaultfigurepos' , get(0,'screensize'),'DefaultFigureWindowStyle','docked');
You can understand my situation by plotting some number of lines after this code is executed and trying to save this whole output as a .fig file.

回答(1 个)

Shounak Shastri
Shounak Shastri 2018-3-5
I think you might find a clue here,
After this if use the "save" command, Matlab will store the current state of your variables in a mat file which you can open anytime you want and just plot the tabgroup variable.
If you want to know more about tabgroups, heres the documentation.
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by