Anovan table cannot be saved as ".fig"

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

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
liomsi liomsi 2019년 1월 17일
Thank you. I have just contacted them.
liomsi liomsi
liomsi liomsi 2019년 1월 17일
And the "close all" command closes all figures except the ones generated by Anovan. This other issue may be related to the save issue.
Star Strider
Star Strider 2019년 1월 17일
My pleasure.
Please post back here with the MathWorks response.
liomsi liomsi
liomsi liomsi 2019년 1월 18일
The MathWorks response is "your license is out of maintenance" :-)

댓글을 달려면 로그인하십시오.

답변 (1개)

madhan ravi
madhan ravi 2019년 1월 17일

0 개 추천

댓글 수: 1

liomsi liomsi
liomsi liomsi 2019년 1월 17일
편집: liomsi liomsi 2019년 1월 17일
I do manage to save figures automatically, as long as they don't come from the Anovan function. My issue happens only with the Variance table from the Anovan function, not with a plot/boxplot/etc function.
And I would like to save them as ".fig" format.
I edited my question to be more precise. Thanks.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Analysis of Variance and Covariance에 대해 자세히 알아보기

제품

릴리스

R2017a

질문:

2019년 1월 17일

댓글:

2019년 1월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by