Error using conv (line 27) A and B must be vectors.

36 views (last 30 days)
shibalik
shibalik on 22 Dec 2014
Commented: Usopp on 16 Oct 2018
input_signal = wavread(C:\Users\Shibalik\Desktop\sample.wav'); %noisy signal
filter_size=40;
iterations=8000;
step_size=.02;
i am getting an error while convulving the input and the impulse. please help me out.
% Create the impulse response for the desired signal
impulse=zeros(filter_size,1);
for (i=1:5)
impulse(((i-1)*filter_size/5)+1)=1/i;
end
% Convolve the impulse with the input signal to generate the desired signal
desired_signal = conv(input_signal, impulse);

Answers (0)

Community Treasure Hunt

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

Start Hunting!