How to take the absolute value for 2D spectrum?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ilya Grishanovich
le 21 Avr 2022
Commenté : Ilya Grishanovich
le 21 Avr 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 commentaires
Réponse acceptée
Hiro Yoshino
le 21 Avr 2022
try function "abs":
t=-pi:0.01:pi
y= sin(t);
plot(t,y);
y2 = abs(y);
plot(t,y2);
?
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!