www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fspecs/@lpcutoffwfp/lpcutoffwfp.m
classdef lpcutoffwfp < fspecs.abstractspecwithordnfs %LPCUTOFFWFP Construct an LPCUTOFFWFP object. % Copyright 1999-2015 The MathWorks, Inc. %fspecs.lpcutoffwfp class % fspecs.lpcutoffwfp extends fspecs.abstractspecwithordnfs. % % fspecs.lpcutoffwfp 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' % F3dB - Property is of type 'posdouble user-defined' % % fspecs.lpcutoffwfp methods: % cheby1 - Chebyshev Type I digital filter design. % getdesignobj - Get the design object. % getdesignpanelstate - Get the designpanelstate. % measureinfo - Return a structure of information for the measurements. % props2normalize - Return the property name to normalize. % thisgetspecs - Get the specs. properties (AbortSet, SetObservable, GetObservable) %FPASS Property is of type 'posdouble user-defined' Fpass = .45; %F3DB Property is of type 'posdouble user-defined' F3dB = 0.5; end methods % constructor block function this = lpcutoffwfp(varargin) %LPCUTOFFWFP Construct a LPCUTOFFWFP object. % Author(s): V. Pellissier % this = fspecs.lpcutoffwfp; respstr = 'Lowpass with cutoff and passband frequency'; fstart = 1; fstop = 1; nargsnoFs = 3; fsconstructor(this,respstr,fstart,fstop,nargsnoFs,varargin{:}); end % lpcutoffwfp end % constructor block methods function set.Fpass(obj,value) % User-defined DataType = 'posdouble user-defined' validateattributes(value,{'numeric'},... {'scalar','positive'},'','Fpass'); value = double(value); obj.Fpass = value; end function set.F3dB(obj,value) % User-defined DataType = 'posdouble user-defined' validateattributes(value,{'numeric'},... {'scalar','positive'},'','F3dB'); value = double(value); obj.F3dB = value; end end % set and get functions methods % public methods Hd = cheby1(this,varargin) designobj = getdesignobj(this,str) s = getdesignpanelstate(this) minfo = measureinfo(this) p = props2normalize(this) specs = thisgetspecs(this) end % public methods methods (Hidden) % possibly private or hidden c = cparam(h) p = propstoadd(this,varargin) end % possibly private or hidden end % classdef