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!