Matlab R2014b with OS X Yosemite Issue
Show older comments
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 Comments
Joakim
on 26 Dec 2014
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
on 6 Mar 2015
Thanks Joakim, it works for me.
Samuel Dupree
on 10 May 2015
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
on 10 May 2015
You missed converting 'number' on the line
ppxy = figure('number','off',...
'tag','pplane8','visible','off');
Samuel Dupree
on 17 May 2015
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
on 17 May 2015
Change the 'number', 'off' to 'numbertitle', 'off'
Samuel Dupree
on 17 May 2015
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
on 17 May 2015
The revised version did not happen to get included.
Walter Roberson
on 17 May 2015
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
on 19 May 2015
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
on 19 May 2015
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
on 20 May 2015
Walter,
Thank you for the explanation. I gratefully appreciate it. This clears things up for me.
Again, thanks.
Sam Dupree.
Accepted Answer
More Answers (2)
Hugh Harvey
on 17 Feb 2017
1 vote
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 Comment
mohammadreza naghimmaramsadeh
on 20 Nov 2020
so beautiful.thanks
Jakob
on 21 Jun 2016
0 votes
Very good work everyone. The pplane-tool is extremely useful! Great you made it work again in newer Matlab!! Cannot give enough kudos ;-)
Categories
Find more on Introduction to Installation and Licensing 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!