?? circular_buffer_fir_filter_in_direct_form.m
字號:
% cfir2.m - FIR filter using circular delay-line buffer%% [y, w, q] = cfir2(M, h, w, q, x)%% h = order-M filter (row vector)% w = circular filter state (row vector)% q = circular index into w% x = scalar input% y = scalar output% based on cfir2.cfunction [y, w, q] = cfir2(M, h, w, q, x)w(q+1) = x; % read inputy = h * w(rem(q+(0:M), M+1)+1)'; % compute outputq = cdelay2(M, q); % update delay
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -