How to save whole output of the script? (387 figures grouped into one figure window, each figure in its own tab)
4 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Shounak Shastri
on 5 Mar 2018
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.
0 Comments
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!