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.
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!