How to show multiple figures per cycle and save into a specific folder
1 view (last 30 days)
Show older comments
I have 100 cycles, each cycles will have 42 figures, my problem is only 42 figures show up for last cycle, which mean the 42 figures did not show up for every cycle (except the last cycle) when the code run. How do I make 42 figures show up for first cycle and close, and for the next cycle the 42 figures will show up and close, and so on until the last cycle. Each 42 figures per cycle I want to save into a specific folder that must be created. Help me!
figure;
subplot(1,2,1);
imshow(ProcessedImage(:,:,i));
subplot(1,2,2);
imshow(boundary_thin(:,:,i));
0 Comments
Answers (1)
John Doe
on 5 May 2019
You can use the publish function - I used it very recently for an almost identicle case and was guided on here.
https://uk.mathworks.com/matlabcentral/answers/443393-how-to-plot-graphs-from-for-loop-to-html-grid
https://uk.mathworks.com/help/matlab/ref/publish.html
See Also
Categories
Find more on Image Processing Toolbox 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!