Is MATLAB giving a wrong root locus? Maybe a bug?
3 ビュー (過去 30 日間)
古いコメントを表示
Daniel Koslopp
2015 年 2 月 26 日
コメント済み: Arjun Sheshadri
2019 年 4 月 18 日
Hello, I am trying to obtain a root locus with the following code which has 3 poles and 1 zero:
if true
clear all
close all
clc
num = [-0.1654 -0.0367]
den = [1 3.27 -20.23 -24.95]
rlocus(num,den)
axis([-10 10 -2.5 2.5])
end
The problem is that ML is giving me a strange result because it has a path on the right side of the biggest pole. The figure shows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147314/image.jpeg)
I tested in other software and it gave different results that seems more reasonable, like this one:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147315/image.png)
So, I am doing something wrong or it is a bug? My version is R2014a.
0 件のコメント
採用された回答
Arkadiy Turevskiy
2015 年 3 月 18 日
There is no error with your code or bug in MATLAB. It just seems you got the sign wrong. If you do rlocus(-num,den), you will get the root locus you expected to see.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Classical Control Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!