Why will I get below error? What might be the error?

plot=3*sin(2*pi*t+pi/2,'.-k');
While I was trying to run the code it is showing error like too many input argument using sin.

 Accepted Answer

plot(3*sin(2*pi*t+pi/2),'.-k')

1 Comment

Reason: plot should be followed by parantheses not "=" .
doc plot % to see many examples

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!