Undefined function or variable 'currentFigure'. Error in matlab.graphics.internal.newplotwrapper (line 14) if isempty(currentFigure)
Mostra commenti meno recenti
why i am taking this error? how can i fix it?
3 Commenti
Walter Roberson
il 11 Nov 2018
In MATLAB CurrentFigure is a property you can get from the graphic root object but currentFigure is not the name of any Mathworks supplied routine.
If we had more context we might be able to figure out what should be used there.
Stephanie Stewart
il 2 Dic 2018
p1=0;
p2=-2;
poles=[p1,p2];
num=[1];
den=poly(poles);
k=[0:0.01:10];
r=rlocus(num,den,k);
damp1= 0;
damp2=.45;
damp=[damp1,damp2];
om1=0;
om2=100;
om=[om1,om2];
grid on;
sgrid('new');
sgrid(damp, om);
grid on;
plot(r, '*');
I got the error when i tried to run this code. But i got the error in line 12.
this code worked 2 days ago...
now the plot function will not work
zin zin
il 2 Dic 2018
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!