www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fspecs/@lppass/lppass.m
classdef lppass < fspecs.abstractlppass %LPPASS Construct an LPPASS object. % Copyright 1999-2015 The MathWorks, Inc. %fspecs.lppass class % fspecs.lppass extends fspecs.abstractlppass. % % fspecs.lppass properties: % ResponseType - Property is of type 'ustring' (read only) % NormalizedFrequency - Property is of type 'bool' % Fs - Property is of type 'mxArray' % FilterOrder - Property is of type 'posint user-defined' % Fpass - Property is of type 'posdouble user-defined' % Apass - Property is of type 'posdouble user-defined' % % fspecs.lppass methods: % analogresp - Compute analog response object. % getdesignobj - Get the designobj. % getdesignpanelstate - Get the designpanelstate. % magprops - Return the magnitude properties. % measureinfo - Return a structure of information for the measurements. % thisgetspecs - Get the specs. methods % constructor block function h = lppass(varargin) %LPPASS Construct a LPPASS object. % H = LPPASS(N,Fpass,Apass,Fs) constructs a lowpass filter specifications % object with passband-edge specs. % % N is the filter order and must be a positive integer. % % Fpass is the passband-edge frequency and must be a positive scalar % between 0 and 1 if no sampling frequency is specified or between 0 and % Fs/2 if a sampling frequency Fs is specified. % % Apass is the maximum passband deviation and it must be a positive % scalar. % % Fs is the sampling frequency. If Fs is not specified, normalized % frequency is assumed. If Fs is specified, it must be a positive scalar. % Author(s): R. Losada narginchk(0,4); % h = fspecs.lppass; constructor(h,varargin{:}); h.ResponseType = 'Lowpass with passband-edge specifications'; end % lppass end % constructor block methods % public methods ha = analogresp(h) designobj = getdesignobj(~,str,sigonlyflag) s = getdesignpanelstate(this) [p,s] = magprops(this) minfo = measureinfo(this) specs = thisgetspecs(this) end % public methods methods (Hidden) % possibly private or hidden constructor(h,varargin) end % possibly private or hidden end % classdef