Info

此问题已关闭。 请重新打开它进行编辑或回答。

WHY THE CODE GIVE ERROR AT THE d=a*(b+c);

1 次查看(过去 30 天)
Irmak Aksoy
Irmak Aksoy 2020-10-28
关闭: MATLAB Answer Bot 2021-8-20
clc
x=0:1:20;
a=exp(-1.3*x);
b=-1.56*10^-5*sin(13*x);
c=3.4*10^-6.*cos(13*x);
d=a*(b+c);
plot(x,d);

回答(1 个)

David Hill
David Hill 2020-10-28
x=0:1:20;
a=exp(-1.3*x);
b=-1.56*10^-5*sin(13*x);
c=3.4*10^-6*cos(13*x);
d=a.*(b+c);%need a dot (.*)
plot(x,d);

标签

Community Treasure Hunt

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

Start Hunting!

Translated by