Anovan table cannot be saved as ".fig"
Show older comments
Hello,
When I try to save the figure representing the output of the ANovan variance table using saveas(gcf,...) or savefig(gcf,...) it opens a new figure and saves this empty figure instead of my Anova table.
I can save it manually (File > saveas...) but I would like to save it automatically under the FIG format.
I have no problem saving plots, the issue seems to happen only with tables printed on a figure window.
An exemple of my code:
>> anovan([1; 2; 3; 4],[1 1; 1 2; 1 2; 3 2])
>> savefig(gcf,'test.fig')
I'm using MAtlab R2017a 64-bit for OSX
5 Comments
Star Strider
on 17 Jan 2019
Apparently it is not possible to save that figure.
When I do:
anovan([1; 2; 3; 4],[1 1; 1 2; 1 2; 3 2])
ha = get(figure(1));
savefig(ha,'test.fig')
and even though ‘ha’ is definitely the handle to the correct figure (display ‘ha’ to verify that), the savefig call throws this error:
Error using savefig (line 43)
H must be an array of handles to valid figures.
MathWorks will have to solve this.
Use the Contact Us link in the top right corner of this page to ask them to. Include the URL of this thread for them to refer to.
(I’m not posting this as an Answer because it isn’t one.)
liomsi liomsi
on 17 Jan 2019
liomsi liomsi
on 17 Jan 2019
Star Strider
on 17 Jan 2019
My pleasure.
Please post back here with the MathWorks response.
liomsi liomsi
on 18 Jan 2019
Answers (1)
madhan ravi
on 17 Jan 2019
0 votes
1 Comment
liomsi liomsi
on 17 Jan 2019
Edited: liomsi liomsi
on 17 Jan 2019
Categories
Find more on Analysis of Variance and Covariance 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!