Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
graphic with MatLab R2014b
조회 수: 1 (최근 30일)
이전 댓글 표시
I get the following error message when I run a script that was given to me on my data and may well have been written in an earlier version - I am working 2014b.
This is the error:
Undefined function 'plus' for input arguments of type 'matlab.ui.Figure'.
Error in PCANMRmodppm_step5varimaxver6 (line 460) figure(h+1);
Tks rp
댓글 수: 0
답변 (1개)
Mike Garrity
2014년 10월 21일
I'm guessing that h is the handle that was returned when you first called figure. Those used to be doubles, but now they're "real handles". There are a bunch of details here , but the short version for your case is that to get the next figure, you need to add one to the figure's Number property, not h itself. Something like this:
figure(h.Number + 1)
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!