フィルターのクリア

Cannot understanding the dimension of XY1

1 回表示 (過去 30 日間)
SeungHyun Cha
SeungHyun Cha 2022 年 10 月 30 日
コメント済み: SeungHyun Cha 2022 年 10 月 30 日
clear
clc
t = 0: 0.01 : 2;
omega_n = 10;
omega = 0:0.1:20;
r = omega/omega_n;
XY1 = sqrt((1+(2*zeta1*r).^2)/((1-r.^2).^2+(2*zeta1*r).^2))
XY1 = 0.4739
plot(r,XY1)
I cannot understand why the XY1 does not have same dimension as r has.
Could you explain why and fix the codes to plot the r vs XY1 graph?

採用された回答

Torsten
Torsten 2022 年 10 月 30 日
omega_n = 10;
omega = 0:0.1:20;
zeta1 = 1.0;
r = omega./omega_n;
XY1 = sqrt((1+(2*zeta1*r).^2)./((1-r.^2).^2+(2*zeta1*r).^2));
plot(r,XY1)
  1 件のコメント
SeungHyun Cha
SeungHyun Cha 2022 年 10 月 30 日
./ !!!! Thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by