Error using + Matrix dimensions must agree., can someone help me?

1 view (last 30 days)
clear all;
[Y,Fs] = wavread('here.wav');
Fs = 16000;%nilai default Fs=16000
%sound(Y,Fs)
noise = randn(length(Y),1);
Y_noise = Y + 0.08*noise;
sound(Y_noise,Fs)

Answers (1)

KSSV
KSSV on 27 Oct 2022
clear all;
[Y,Fs] = wavread('here.wav');
Fs = 16000;%nilai default Fs=16000
%sound(Y,Fs)
noise = randn(size(Y));
Y_noise = Y + 0.08*noise;
sound(Y_noise,Fs)

Categories

Find more on MATLAB in Help Center and File Exchange

Products


Release

R2013a

Community Treasure Hunt

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

Start Hunting!