www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgpreclookupfix/char.m
function str = char(Prec) %CHAR Return a readable representation of a cgpreclookupfix object. % % STR = CHAR(PREC) returns a string that represents the object. % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. nbits = get(Prec,'bits'); s = get(Prec,'signed'); if s str = 'Signed'; else str = 'Unsigned'; end str = sprintf(['%s %d bit fixed point with a lookup table hardware to ' ... 'physical conversion'], str, nbits);