MATLAB Answers

What’s wrong?

23 views (last 30 days)
Aurelius Hardy
Aurelius Hardy on 12 Feb 2021
Commented: Rik on 12 Feb 2021
what am i doing wrong? plot not showing up. the t&v is in parenthesis
  2 Comments
Aurelius Hardy
Aurelius Hardy on 12 Feb 2021
thank you

Sign in to comment.

Answers (1)

Blue
Blue on 12 Feb 2021
Is this what you want ? Works fine.
t = 0:1/6000:1/30
v = (4*cos((120*pi*t) + (pi/3)))
plot(t,v)
  2 Comments
Rik
Rik on 12 Feb 2021
The code in the answer should not result in an image like you posted. What exact code did you use?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!