How to take the absolute value for 2D spectrum?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ilya Grishanovich
il 21 Apr 2022
Commentato: Ilya Grishanovich
il 21 Apr 2022
I have 2D spectrum with positive(blue) and negative(red) signals, I want to make all signals positive and to save the received spectra.
How to make it? (thank you in advance)
0 Commenti
Risposta accettata
Hiro Yoshino
il 21 Apr 2022
try function "abs":
t=-pi:0.01:pi
y= sin(t);
plot(t,y);
y2 = abs(y);
plot(t,y2);
?
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!