How to close only anova figures
2 views (last 30 days)
Show older comments
Valerio Romano
on 26 Oct 2023
Commented: Valerio Romano
on 31 Oct 2023
After I run any script that generates multiple figures I know I can close all the figures with:
close all hidden
if it contains also anova results, but if I need to close only this latter type of figure I only found this way to close them:
anovaResultFigures = findall(0,'HandleVisibility','callback');
close(anovaResultFigures);
Is there a better and maybe more specific way to do it because I'm not sure if any other figure have this type of visibility?
2 Comments
Accepted Answer
Walter Roberson
on 29 Oct 2023
close(findall(0, '-depth', 1, 'Type', 'figure', 'Name', 'N-Way ANOVA'))
More Answers (1)
Chunru
on 26 Oct 2023
How about collecting the desired figure handles in an array when creating the figures, such as
h(i) = figure(...);
At the end, just run
close(h)
to close the desired figures?
See Also
Categories
Find more on Analysis of Variance and Covariance 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!