MATLAB Answers

0

How do i plot?

Asked by Wei Jun Lee on 25 Apr 2018
Latest activity Commented on by Wei Jun Lee on 25 Apr 2018
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 on 25 Apr 2018
Please provide good expression.

Sign in to comment.

1 Answer

Answer by Pawel Jastrzebski on 25 Apr 2018
 Accepted Answer

Is this what you meant?
dt = 0.0001;
t = 0:dt:0.02;
y = (5+cos(20*pi*t)).*cos(2*pi*100*t);
figure;
plot(t,y);
Output:

  1 Comment

Wei Jun Lee on 25 Apr 2018
Yes, thank you so much!

Sign in to comment.