Cannot understanding the dimension of XY1
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
SeungHyun Cha
am 30 Okt. 2022
Kommentiert: SeungHyun Cha
am 30 Okt. 2022
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))
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?
0 Kommentare
Akzeptierte Antwort
Torsten
am 30 Okt. 2022
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)
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!