Error message when trying to plot

getting the following errors when i run the code below:
Error using /
Matrix dimensions must agree.
Error in TEST (line 11)
T=(K/(sqrt(2*pi*w)));
K = 0.5605
s= 0:1:1000;
t=s/1000;
u= t-0.1;
v=(s-500)/1000;
w =sqrt(u.^2+v.^2);
T=(K/(sqrt(2*pi*w)));
plot(s,T);shg

답변 (1개)

Torsten
Torsten 2022년 12월 1일

0 개 추천

T = K ./ sqrt(2*pi*w);
instead of
T=(K/(sqrt(2*pi*w)));

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2022년 12월 1일

답변:

2022년 12월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by