sfx is not defined in that code.
error with bar !!
1 次查看(过去 30 天)
显示 更早的评论
l=8;w=5;
ra=w;m=w*1;
x=sym('x');
x=0:0.1:1;
bar(x,sfx,'r','linewidth',5)
bmx=-w*x;
bar(x,bmx)
i tried changing the path and name also then ran it again, the error is showing:
Error using bar (line 127)
Unable to convert expression into double array.
Error in q1 (line 5)
bar(x,sfx,'r','linewidth',5)
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!