Effacer les filtres
Effacer les filtres

Matrix dimensions must agree

2 vues (au cours des 30 derniers jours)
Chirag
Chirag le 14 Oct 2022
Réponse apportée : DGM le 14 Oct 2022
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)

Réponses (1)

DGM
DGM le 14 Oct 2022
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.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by