3 %>@brief Deconvolution with a vector h
5 %> There are two possible ways to use
this function:
14 %> The number of variables of the output will be <code>nf_input-2*(length(h)-1)/2</code>
16 %> h needs to be an odd-length vector.
21 %>@return <code>[X_after]</code> or <code>[X_after, x_after]</code>,
as described above.
24 if length(h)/2 == floor(length(h)/2)
25 error('Odd-length filter, please!');
30 h = h/norm(h); % makes filter norm unitary
32 offset = (length(h)-1)/2;
35 X_after = zeros(no, nf-2*offset);
38 X_after(i, :) = deconv(X(i, :), h);
42 varargout = {X_after};
44 x_after = x(1+offset:end-offset);
45 varargout = {X_after, x_after};
Analysis Session (AS) base class.
function deconvolve(in X, in x, in h)