Info

この質問は閉じられています。 編集または回答するには再度開いてください。

graphic with MatLab R2014b

1 回表示 (過去 30 日間)
Roberto Pace
Roberto Pace 2014 年 10 月 21 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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

回答 (1 件)

Mike Garrity
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)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by