www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgprecpolyfix/get.m
function Value = get(Prec, Property) %GET Get properties of a cgprecpolyfix object. % % POLYFIXPRECProperty = GET(POLYFIXPREC, Property) returns the specified % property Property of the cgprecpolyfix object POLYFIXPREC. % % POLYFIXPRECProperty = GET(POLYFIXPREC) returns all available properties % of the cgprecpolyfix object. % % See also CGPRECPOLYFIX. % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin==1 % Return all available properties in a cell array Value = get(Prec.cgprecfix); Value.NumCoeff = Prec.NumCoeff; Value.DenCoeff = Prec.DenCoeff; Value.PhysRange = Prec.PhysRange; return end switch lower(Property) case 'numcoeff' % Return NumCoeff Value = Prec.NumCoeff; case 'dencoeff' % Return DenCoeff Value = Prec.DenCoeff; case 'physrange' % Return PhysRange Value = Prec.PhysRange; otherwise Value = get(Prec.cgprecfix, Property); end