Error message when trying to plot

1 次查看(过去 30 天)
Natali Petani
Natali Petani 2022-12-1
回答: Torsten 2022-12-1
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
T = K ./ sqrt(2*pi*w);
instead of
T=(K/(sqrt(2*pi*w)));

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by