필터 지우기
필터 지우기

i am not getting correct output for this sawtooth plot

조회 수: 1 (최근 30일)
Attaullah Shafiq
Attaullah Shafiq 2020년 5월 31일
댓글: Attaullah Shafiq 2020년 5월 31일
I have to plot sawtooth with amplitude of 4 and freq(fs) of 30
I m solving like sine wave. kindly find mistakes..
t = 0:5:30;
a = 4;
x = a*sawtooth(t);
plot(t,x)
axis([0 30 0 4])
  댓글 수: 7
Attaullah Shafiq
Attaullah Shafiq 2020년 5월 31일
Now i ve generate this.
close all
T=6;
Fs=10000;
dt = 10/Fs;
t = 0:dt:T-dt;
x = sawtooth(2*pi*t);
t=t*5;
plot(t,x)
grid on
this close is very close, but again issue is on Amplitude.. i want amplitude=4
Attaullah Shafiq
Attaullah Shafiq 2020년 5월 31일
Now Its done now

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

채택된 답변

madhan ravi
madhan ravi 2020년 5월 31일
T = 6;
Fs = 1e3;
dt = 1/Fs;
t = 0:dt:T-dt;
a = 4;
x = a*sawtooth(2*pi*t);
t = t*5;
plot(t,x)
grid on
  댓글 수: 1
Attaullah Shafiq
Attaullah Shafiq 2020년 5월 31일
thank u...
how i set axis for this
axis([0 30 0 4])
but this is not aplly clearly

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

추가 답변 (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