Matrix dimensions must agree

2 次查看(过去 30 天)
Chirag
Chirag 2022-10-14
回答: DGM 2022-10-14
wn = 196570;
r = 6351.43;
chi = 0:0.1:2;
phim = 1;
ke = 1.134;
w = 1./(wn.^2.*sqrt(1+(r.*chi).^2.))*sqrt((1-(1+2*phim.*r).*chi.^2.)^2.+((1+ke.^2).*r.*chi+2*phim.*chi-r*chi.^3.)^2.);
plot(chi,w)

回答(1 个)

DGM
DGM 2022-10-14
I'm going to guess that this is what was intended
wn = 196570;
r = 6351.43;
chi = 0:0.1:2;
phim = 1;
ke = 1.134;
w = 1./(wn.^2.*sqrt(1+(r.*chi).^2)).*sqrt((1-(1+2*phim.*r).*chi.^2).^2 + ((1+ke.^2).*r.*chi + 2*phim.*chi - r*chi.^3).^2);
plot(chi,w)
compare as needed.

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by