필터 지우기
필터 지우기

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