How to multiply array by -1?
Ältere Kommentare anzeigen
I want to invert all the values in the array by -1.
[x,fs] = audioread('400hz.mp3'];
y=-1*x;
soundsc(y,fs);
1 Kommentar
Stephen23
am 2 Mär. 2021
Simpler:
y = -x;
Antworten (1)
Sai Veeramachaneni
am 5 Mär. 2021
0 Stimmen
Hi,
You can use y = -x or y = -1.*x
Kategorien
Mehr zu Audio I/O and Waveform Generation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!