Info
此问题已关闭。 请重新打开它进行编辑或回答。
WHY THE CODE GIVE ERROR AT THE d=a*(b+c);
1 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(1 个)
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);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!