How to multiply array by -1?
이전 댓글 표시
I want to invert all the values in the array by -1.
[x,fs] = audioread('400hz.mp3'];
y=-1*x;
soundsc(y,fs);
댓글 수: 1
Stephen23
2021년 3월 2일
Simpler:
y = -x;
답변 (1개)
Sai Veeramachaneni
2021년 3월 5일
0 개 추천
Hi,
You can use y = -x or y = -1.*x
카테고리
도움말 센터 및 File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!