?? behavioral_filter.m
字號:
% AccelDSP 8.1.1 build 690 Production, compiled Apr 26 2006
%
% THIS IS UNPUBLISHED, LICENSED SOFTWARE THAT IS THE CONFIDENTIAL
% AND PROPRIETARY PROPERTY OF XILINX OR ITS LICENSORS
%
% Copyright(c) Xilinx, Inc., 2000-2006, All Rights Reserved.
% Reproduction or reuse, in any form, without the explicit written
% consent of Xilinx, Inc., is strictly prohibited.
function y = behavioral_filter(X)
% Create filter coefficients
NUMTAPS = 32;
BE = 0.25;
persistent b state
if isempty(b)
b = fir1(NUMTAPS-1,BE);
state = zeros(NUMTAPS-1,1);
end
% Filter the input
[y,state] = filter(b,1,X,state);
save coeff.txt -ascii -double b
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -