How to multiply array by -1?
Afficher commentaires plus anciens
I want to invert all the values in the array by -1.
[x,fs] = audioread('400hz.mp3'];
y=-1*x;
soundsc(y,fs);
1 commentaire
Stephen23
le 2 Mar 2021
Simpler:
y = -x;
Réponses (1)
Sai Veeramachaneni
le 5 Mar 2021
0 votes
Hi,
You can use y = -x or y = -1.*x
Catégories
En savoir plus sur Audio I/O and Waveform Generation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!