No BSD License  

Highlights from
Tektronix RSA3000A/B User-Defined Filter Converter

Tektronix RSA3000A/B User-Defined Filter Converter

by

 

22 Jun 2008 (Updated )

Convert MATLAB filter coefficient files to a RSA3000-compatable format

doublewide
function Hd = doublewide
%DOUBLEWIDE Returns a discrete-time filter object.

%
% M-File generated by MATLAB(R) 7.6 and the Signal Processing Toolbox 6.9.
%
% Generated on: 30-May-2008 15:40:38
%

% Complex Remez FIR Highpass filter designed using the CREMEZ function.

% All frequency values are in Hz.
Fs = 48000;  % Sampling Frequency

N      = 100;    % Order
Fpass1 = -9600;  % First Passband Frequency
Fstop1 = -7200;  % First Stopband Frequency
Fstop2 = 12000;  % Second Stopband Frequency
Fpass2 = 14400;  % Second Passband Frequency
Wpass1 = 1;      % First Passband Weight
Wstop  = 1;      % Stopband Weight
Wpass2 = 1;      % Second Passband Weight
debug  = 'off';  % Debug Mode
dens   = 25;     % Density Factor

% Calculate the coefficients using the CREMEZ function.
b  = cfirpm(N, [-Fs/2 Fpass1 Fstop1 Fstop2 Fpass2 Fs/2]/(Fs/2), ...
            'highpass', [Wpass1 Wstop Wpass2], {dens}, debug);
Hd = dfilt.dffir(b);

% [EOF]

Contact us