my root locus plot wont show the datatip

i have a root locus plot here:
k = 1;
s = tf('s');
Gs = 1/(s^2+s);
Ks = k*(s+2)/(s+10);
sys = Gs*Ks/(1+Gs*Ks);
rlocus(sys);
But the problem is that, whenever i click on the line, the data won't display, just x and y coordinate. is there any fix to this?

回答 (2 件)

Kiran Felix Robert
Kiran Felix Robert 2020 年 8 月 28 日

2 投票

Hi Zain,
I assume that you are using the MATLAB live editor for root locus plot. This is a known issue, it is reported to the developers and the concerned people are looking into it.
One known workaround is to:
1. Create the root locus plot with either 'rlocus' command or the 'rlocusplot' command from a MATLAB script file or the command line.
2. Then use data cursor to examine various points of the root locus plot.
Kiran Felix Robert

7 件のコメント

Zain Ahmed
Zain Ahmed 2020 年 8 月 28 日
I wan't the developers to fix that issue immediately
Matteo Ceriotti
Matteo Ceriotti 2020 年 11 月 12 日
The fact that the "interactive" features of some plots such as Bode diagrams, Root loci and p-z maps do not work in the live editor is big deal for me. One of the advantages of the live editor is to show step-by-step how the code works to students, and interactively explore results and changes, but this is a major feature which is lacking.
Mansouri Hajar
Mansouri Hajar 2021 年 10 月 7 日
October 2021 and it still doesn't work !!
Francisco Arredondo
Francisco Arredondo 2022 年 4 月 28 日
hey so i was dealing with the same problem, copy the code into a script file, it worked for me
Junyao Liu
Junyao Liu 2022 年 10 月 9 日
Hi Kiran, is there any update on this for r2022b? The data still don't show besides (X,Y) in the live editor, and I just don't like to use .m if I can help it
Henry Asa
Henry Asa 2023 年 4 月 12 日
Any estimates/updates on when this will be fixed? I prefer using live scripts but this functionality is critical.
sihan zhang
sihan zhang 2023 年 5 月 5 日
編集済み: sihan zhang 2023 年 5 月 5 日
still not working on the R2022b version

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

Ahmad
Ahmad 2024 年 1 月 8 日

0 投票

clear all;clf;
numerator = [1 4];
denominator = [1 8 7 0];
sys = tf(numerator, denominator);
rlocus(sys);
grid on;
title('Root-Locus L(s) = s+4/s^3+8s^2+7s')

カテゴリ

製品

リリース

R2019b

質問済み:

2020 年 8 月 25 日

回答済み:

2024 年 1 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by