How to draw spectrum of signal?
조회 수: 25 (최근 30일)
이전 댓글 표시
Hello. I have problem with understanding how to draw spectrum of this shape in matlab because amplitude is constant when frequency is lower than 1500 and then it change from 1500 to 3000Hz. Thank you.
댓글 수: 0
채택된 답변
Image Analyst
2024년 11월 12일 15:37
Did you try plot()?
fm = 1000; % whatever
f = [0, 0, fm/2, fm];
X2 = [0, 1, 1, 0];
plot(f, X2, 'r-', 'LineWidth', 4);
xlabel('f [Hz]');
ylabel('X2(f)');
grid on;
댓글 수: 0
추가 답변 (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!