Matlab R2014b with OS X Yosemite Issue
古いコメントを表示
I am trying to use the plane program and keep getting the following error when I run it:
Error using figure
There is no numb property on the Figure class.
Error in pplane8 (line 398)
ppset = figure('name','pplane8 Setup','numb','off',...
Any ideas on what I should do? I've tried two separate Macs on Yosemite and it does the same thing.
13 件のコメント
Joakim
2014 年 12 月 26 日
I also had this issue, but I seemed to make it work. Other than changing all 'numb' to 'NumberTitle' and 'user' to 'UserData' there is one more thing.
- Change all "if notice" to "if notice ~= 0"
- 2x "if dud.notice & ...", change that to "if dud.notice ~= 0 && ..."
- and one "if dud.notice" to "if dud.notice ~= 0"It looks ugly but it seems to work. I got it to simulate
SHUHAO CAO
2015 年 3 月 6 日
Thanks Joakim, it works for me.
Samuel Dupree
2015 年 5 月 10 日
I'm attempting to run pplane8.m on my MacBook Pro. I'm running Mac OS X ver. 10.10.3 (Yosemite) using MATLAB R2014b. I've applied all the fixes discussed in this thread, but the code gives me the following messages in the Command Window:
>> pplane8 Error using figure While setting the 'Number' property of Figure: Value must be a scalar double or the empty matrix Error in pplane8 (line 5097) ppxy = figure('number','off',...
Error in pplane8 (line 5078) hh = pplane8('plotxyfig',type,gcf);
Error while evaluating Menu Callback
>>
I've attached a copy of the code to this note.
Please advise.
Sam Dupree.
Walter Roberson
2015 年 5 月 10 日
You missed converting 'number' on the line
ppxy = figure('number','off',...
'tag','pplane8','visible','off');
Samuel Dupree
2015 年 5 月 17 日
I'm not sure what I need to replace 'number' with. In addition to the error I'm getting on line 5097, I'm also getting an error on line 5078 per the following error message:
_Error using figure While setting the 'Number' property of Figure: Value must be a scalar double or the empty matrix Error in pplane8 (line 5097) ppxy = figure('number','off',...
Error in pplane8 (line 5078) hh = pplane8('plotxyfig',type,gcf);
Error while evaluating Menu Callback_
Please advise.
Walter Roberson
2015 年 5 月 17 日
Change the 'number', 'off' to 'numbertitle', 'off'
Samuel Dupree
2015 年 5 月 17 日
Walter, thank you the clarification. I took your advice and made the change, but I'm still getting errors. The errors appear to arise when I attempt to plot x vs. t, y .vs. t or both x and y vs. t on the same plot). The messages I get are:
Undefined function 'real' for input arguments of type 'matlab.ui.Figure'. Error in int2str (line 12) x = real(x); Error in pplane8 (line 5099) name = ['pplane8 t-plot # ',int2str(ppxy)];
Error in pplane8 (line 5078) hh = pplane8('plotxyfig',type,gcf);
Error while evaluating Menu Callback
I've attached a current copy of pplane8 with all the updates discussed in this thread.
Please advise.
Walter Roberson
2015 年 5 月 17 日
The revised version did not happen to get included.
Walter Roberson
2015 年 5 月 17 日
Okay, so this is something that affects R2014b and later, and the solution to it involves a change that is not backwards compatible.
On line 5099 where there is currently
name = ['pplane8 t-plot # ',int2str(ppxy)];
change that line to be
name = ['pplane8 t-plot # ',int2str(get(ppxy,'Number'))];
Note that this is 'Number', not 'NumberTitle'.
Samuel Dupree
2015 年 5 月 19 日
Walter,
Made the change for line 5099 and it works. Thank you. One last though, what was it that caused you to see that I needed to replace ppxy with get(ppxy,'Number')?
Ssm Dupree.
Walter Roberson
2015 年 5 月 19 日
I looked at the code and saw that it was trying to create a string containing the figure number. I looked at the documentation for Figure Properties and saw that there is now a Number property that returns the figure number. So get() of the Number is what was needed. The rest of the time was spent searching through the code to be sure that the problem did not occur elsewhere.
Samuel Dupree
2015 年 5 月 20 日
Walter,
Thank you for the explanation. I gratefully appreciate it. This clears things up for me.
Again, thanks.
Sam Dupree.
採用された回答
その他の回答 (2 件)
Hugh Harvey
2017 年 2 月 17 日
1 投票
Hi, I have gone through and made all these changes to Pplane - Please see link for updated version: http://uk.mathworks.com/matlabcentral/fileexchange/61636-pplane
1 件のコメント
mohammadreza naghimmaramsadeh
2020 年 11 月 20 日
so beautiful.thanks
Jakob
2016 年 6 月 21 日
0 投票
Very good work everyone. The pplane-tool is extremely useful! Great you made it work again in newer Matlab!! Cannot give enough kudos ;-)
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!