Code covered by the BSD License  

Highlights from
MATLAB para Ensino

image thumbnail
from MATLAB para Ensino by Elia Matsumoto
Slides and demo files from the webinar "MATLAB for Teaching' (Portuguese).

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

%
% M-File generated by MATLAB(R) 7.5 and the Signal Processing Toolbox 6.8.
%
% Generated on: 13-Aug-2007 13:21:59
%

% Butterworth Lowpass filter designed using FDESIGN.LOWPASS.

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

Fpass = 1.5;         % Passband Frequency
Fstop = 2;           % Stopband Frequency
Apass = 1;           % Passband Ripple (dB)
Astop = 80;          % Stopband Attenuation (dB)
match = 'stopband';  % Band to match exactly

% Construct an FDESIGN object and call its BUTTER method.
h  = fdesign.lowpass(Fpass, Fstop, Apass, Astop, Fs);
Hd = design(h, 'butter', 'MatchExactly', match);

% [EOF]

Contact us at files@mathworks.com