Borrar filtros
Borrar filtros

How to multiply array by -1?

5 visualizaciones (últimos 30 días)
Sean Roh
Sean Roh el 2 de Mzo. de 2021
Respondida: Sai Veeramachaneni el 5 de Mzo. de 2021
I want to invert all the values in the array by -1.
[x,fs] = audioread('400hz.mp3'];
y=-1*x;
soundsc(y,fs);

Respuestas (1)

Sai Veeramachaneni
Sai Veeramachaneni el 5 de Mzo. de 2021
Hi,
You can use y = -x or y = -1.*x

Categorías

Más información sobre Measurements and Spatial Audio en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by