You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Well, filter is the function that implements filtering in MATLAB (both FIR and IIR). The link you sent me is for function to design filter coefficients. From what I understood (could be wrong) from the description and the current code in p_fir it should filter samples GIVEN the filter coefficients. Technically, it behaves like conv, except the output is the same length as the input. In other words, whereas conv returns nh+nx-1, filter returns nx.
Current p_fir implementation is incorrect. Using the inputs:
it outputs:
while MATLAB gives
Moreover, it goes beyond the buffer limit (the output should've been 10 samples).
The text was updated successfully, but these errors were encountered: