How to draw spectrum of signal?
24 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Adnan
il 12 Nov 2024 alle 15:22
Risposto: Image Analyst
il 12 Nov 2024 alle 15:37
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 Commenti
Risposta accettata
Image Analyst
il 12 Nov 2024 alle 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!