Linking markers in sequence of evaluated eigenvalue

1 次查看(过去 30 天)
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
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
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 CenterFile Exchange 中查找有关 NaNs 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by