MATLAB Answers

error with bar !!

7 views (last 30 days)
Siddhant Das
Siddhant Das on 23 Dec 2020
Answered: VBBV on 23 Dec 2020
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)

  1 Comment

Walter Roberson
Walter Roberson on 23 Dec 2020
sfx is not defined in that code.

Sign in to comment.

Answers (1)

VBBV
VBBV on 23 Dec 2020
Did you define sfx as function ?

  0 Comments

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by