i need to plot a sine wave of 1khz using sampling frequency. where am i going wrong? i need a correct representation of wave.
    조회 수: 16 (최근 30일)
  
       이전 댓글 표시
    
fs=10000;%sampling frequency
ts=1/fs;
t=0:ts:1-ts;
f1=10;
a=sin(2*pi*f1*t);
plot(t,a);
댓글 수: 4
  Walter Roberson
      
      
 2021년 3월 9일
				fs=10000;%sampling frequency
ts=1/fs;
t=0:ts:1-ts;
f1=10;
a=sin(2*pi*f1*t);
plot(t,a);
That looks appropriate time to me. Your upper bound on your t is just before 1 (second) and you draw to 1 (second)
답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


