Question: Have made this function in Matlab I then call it in the following script But I get this error: Subscript indices must either be real
Have made this function in Matlab

I then call it in the following script

But I get this error:
Subscript indices must either be real positive integers or logicals.
What is the problem?
function [y] convolution (f,h) = | length = 1; 1; tot = (length (f) + length (h)) [f_pad] = zero-pad (tot, f); [h-pad] = zero-pad (tot , h); - F = fft (fpad) ; - | H = fft (h-pad) ; y = ifft (Y) ; end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
