Linking markers in sequence of evaluated eigenvalue

1 回表示 (過去 30 日間)
Kamilu Sanusi
Kamilu Sanusi 2024 年 1 月 22 日
回答済み: Sulaymon Eshkabilov 2024 年 1 月 22 日
My problem here is i want to link the eigenvalues on the PZ map in sequential arrangement/display of the eigenvalue but not random linking. Your advise is highly solicited. Thank you
a = -2.6152 + 5.0781i;
b = -2.6195 + 5.0785i;
c = -2.6237 + 5.0789i;
d = -2.6280 + 5.0792i;
e = -2.6322 + 5.0796i;
s = tf('s');
T = (1)/((s-a)*(s-b)*(s-c)*(s-d)*(s-e));
pzmap(T)
grid on
ax = gca;
li = ax.Children(1).Children
for k = 1:numel(li)
li(k).LineStyle = "-";
li(k).LineWidth = 2;
end
set(gca,'FontSize',12);
set(gcf,'color','w');
  2 件のコメント
Dyuman Joshi
Dyuman Joshi 2024 年 1 月 22 日
Is the attached figure the output you want to obtain?
If not, then what should be the order of the linking?
Kamilu Sanusi
Kamilu Sanusi 2024 年 1 月 22 日
@Dyuman Joshi, Thank you so much. The initial attached was already obtained. Attached here is the what is desired from A;B;C;D; E, in that order.

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

回答 (2 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2024 年 1 月 22 日
a = -2.6152 + 5.0781i;
b = -2.6195 + 5.0785i;
c = -2.6237 + 5.0789i;
d = -2.6280 + 5.0792i;
e = -2.6322 + 5.0796i;
s = tf('s');
T = (1)/((s-a)*(s-b)*(s-c)*(s-d)*(s-e));
pzmap(T)
grid on
ax = gca;
li = ax.Children(1).Children
li =
2×1 Line array: Line (PZ_Zero) Line (PZ_Pole)
for k = 1:numel(li)
li(k).LineStyle = "-";
li(k).LineWidth = 2;
end
set(gca,'FontSize',12);
set(gcf,'color','w');
% These axis limits are needed
axis([-2.635 -2.61 5.03 5.1])

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2024 年 1 月 22 日
Axis limits can be also adjust a bit more to get better display of the results, e.g.:
a = -2.6152 + 5.0781i;
b = -2.6195 + 5.0785i;
c = -2.6237 + 5.0789i;
d = -2.6280 + 5.0792i;
e = -2.6322 + 5.0796i;
s = tf('s');
T = (1)/((s-a)*(s-b)*(s-c)*(s-d)*(s-e));
pzmap(T)
grid on
ax = gca;
li = ax.Children(1).Children;
for k = 1:numel(li)
li(k).LineStyle = "-";
li(k).LineWidth = 2;
end
set(gca,'FontSize',12);
set(gcf,'color','w');
% These axis limits are needed:
axis([-2.64 -2.605 5.02 5.11])

カテゴリ

Help Center および File ExchangeMathematics and Optimization についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by