rlocus throws up error
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
M Prabhu
am 7 Aug. 2021
Kommentiert: Star Strider
am 8 Aug. 2021
The root locus is not plotted and I get an error message as follows:
"NaN/Inf breakpoint hit for rlocusplot.m on line 83.
83 src = repmat(handle(NaN),nsys,1);"
For example,
>> sys = tf([2 5 1],[1 2 3]);
>> rlocus(sys)
0 Kommentare
Akzeptierte Antwort
Star Strider
am 7 Aug. 2021
Something else is wrong somewhere. I have no idea as to suggesting where to look for the problem.
The example code works here:
sys = tf([2 5 1],[1 2 3]);
rlocus(sys)
First, see if closing and then re-starting MATLAB solves it.
.
2 Kommentare
Star Strider
am 8 Aug. 2021
I am happy that you got that sorted!
(I have no idea, either. I never encountered a similar situation with the Control System Toolbox, however re-starting MATLAB has solved similar problems in my experience.)
As always, my pleasure!
.
Weitere Antworten (1)
Paul
am 7 Aug. 2021
Bearbeitet: Paul
am 7 Aug. 2021
Seems to work fine:
sys = tf([2 5 1],[1 2 3]);
rlocus(sys);
You might have a different function tf() or rlocus() that is shadowing the same from the Control System Toolbox. Do you see these results in repsonse to a which() command?
which tf -all
which rlocus -all
Siehe auch
Kategorien
Mehr zu Classical Control Design finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!