How do i plot?

1 view (last 30 days)
Im having problem plotting the sinusoidal time signal for (5+cos(20pt))cos(2p(100)t), having Dt=0.0001s, t=0~0.02 sec.
  1 Comment
Aniket Patil
Aniket Patil on 25 Apr 2018
Please provide good expression.

Sign in to comment.

Accepted Answer

Pawel Jastrzebski
Pawel Jastrzebski on 25 Apr 2018
Is this what you meant?
dt = 0.0001;
t = 0:dt:0.02;
y = (5+cos(20*pi*t)).*cos(2*pi*100*t);
  1 Comment
Wei Jun Lee
Wei Jun Lee on 25 Apr 2018
Yes, thank you so much!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by