フィルターのクリア

Root Locus system description at given point not showing up

13 ビュー (過去 30 日間)
Whitten Oswald
Whitten Oswald 2022 年 4 月 5 日
コメント済み: Y. Shen 2022 年 11 月 26 日
When I use rlocus(), clicking on a point simply displays the coordinates rather than the system information at that point (gain, damping ratio, etc). Additionally, 'grid on' gives an error.
g=tf([1],[1 24 84 80]);
rlocus(g)
Edit: Solved the problem. I was running the code in a live script, but it must be executed in Command Window.
  2 件のコメント
Paul
Paul 2022 年 4 月 12 日
Interesting. What happens if you run it in the Live Script, and then click the little arrow in the upper right corner of the figure in the Live script to open it in a figure window? Do the data tips work as expected in that case?
Whitten Oswald
Whitten Oswald 2022 年 4 月 13 日
Nope, that's how I was trying it (in the original screenshot). Same exact code and figure in Command Window works though.

サインインしてコメントする。

回答 (2 件)

Pravarthana P
Pravarthana P 2022 年 4 月 8 日
Hi Whitten Oswald,
I understand that you are looking for the system information while hovering over the plot.
In MATLAB versions R2018b or later, the data cursor mode has been made as the built-in interactions. Since you are using R2021b, the data points should be enabled by default.
I tried reproducing the issue at my end and I could see the information datapoints enabled by default. One possible work around would be to customize your built-in interactions and add dataTipInteraction to the Interaction array.
Hope this helps you!!
  1 件のコメント
Whitten Oswald
Whitten Oswald 2022 年 4 月 8 日
Thank you for your response.
I discovered the custom DataTips while trying to troubleshoot this problem, but hoped it wouldn't come to that. I'll look into doing this.

サインインしてコメントする。


Paul
Paul 2022 年 4 月 8 日
Is there any chance that you have some local version of rlocus() that is shadowing the Control System Toolbox? What is the output of
which rlocus -all
/MATLAB/toolbox/control/ctrlobsolete/rlocus.m /MATLAB/toolbox/control/ctrldesign/@DynamicSystem/rlocus.m % Shadowed DynamicSystem method
g=tf([1],[1 24 84 80]);
which rlocus(g)
/MATLAB/toolbox/control/ctrldesign/@DynamicSystem/rlocus.m % tf method
  4 件のコメント
Whitten Oswald
Whitten Oswald 2022 年 4 月 8 日
No worries, I appreciate you trying anyway. It doesn't seem to be a common problem for a lot of users, so I'll probably just try to implement the data tips manually as Pravarthana P suggested (if I can figure out how).
Thanks again.
Y. Shen
Y. Shen 2022 年 11 月 26 日
I have the same problem. I have MATLAB both on my desktop and laptop. On my laptop it shows all the parameters but for some reason the desktop version just shows teh value for x and y axis.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeClassical Control Design についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by