How to multiply array by -1?
Mostrar comentarios más antiguos
I want to invert all the values in the array by -1.
[x,fs] = audioread('400hz.mp3'];
y=-1*x;
soundsc(y,fs);
1 comentario
Stephen23
el 2 de Mzo. de 2021
Simpler:
y = -x;
Respuestas (1)
Sai Veeramachaneni
el 5 de Mzo. de 2021
0 votos
Hi,
You can use y = -x or y = -1.*x
Categorías
Más información sobre Audio I/O and Waveform Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!