Matlab R2014b with OS X Yosemite Issue
Ältere Kommentare anzeigen
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 Kommentare
Joakim
am 26 Dez. 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
am 6 Mär. 2015
Thanks Joakim, it works for me.
Samuel Dupree
am 10 Mai 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
am 10 Mai 2015
You missed converting 'number' on the line
ppxy = figure('number','off',...
'tag','pplane8','visible','off');
Samuel Dupree
am 17 Mai 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
am 17 Mai 2015
Change the 'number', 'off' to 'numbertitle', 'off'
Samuel Dupree
am 17 Mai 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
am 17 Mai 2015
The revised version did not happen to get included.
Walter Roberson
am 17 Mai 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
am 19 Mai 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
am 19 Mai 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
am 20 Mai 2015
Walter,
Thank you for the explanation. I gratefully appreciate it. This clears things up for me.
Again, thanks.
Sam Dupree.
Akzeptierte Antwort
Weitere Antworten (2)
Hugh Harvey
am 17 Feb. 2017
1 Stimme
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 Kommentar
mohammadreza naghimmaramsadeh
am 20 Nov. 2020
so beautiful.thanks
Jakob
am 21 Jun. 2016
0 Stimmen
Very good work everyone. The pplane-tool is extremely useful! Great you made it work again in newer Matlab!! Cannot give enough kudos ;-)
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!