How do i plot?

조회 수: 2 (최근 30일)
Wei Jun Lee
Wei Jun Lee 2018년 4월 25일
댓글: Wei Jun Lee 2018년 4월 25일
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
Aniket Patil
Aniket Patil 2018년 4월 25일
Please provide good expression.

댓글을 달려면 로그인하십시오.

채택된 답변

Pawel Jastrzebski
Pawel Jastrzebski 2018년 4월 25일
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
Wei Jun Lee
Wei Jun Lee 2018년 4월 25일
Yes, thank you so much!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by