


DISPLAY overloads display functionality for mfir objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: DISPLAY overloads display functionality for mfir objects.
CALL: txt = display(mfir)
INPUT: mfir - IIR filter object
OUTPUT: txt - cell array with strings to display the mfir object
M-FILE INFO: Get information about this methods by calling
>> mfir.getInfo('display')
Get information about a specified set-plist by calling:
>> mfir.getInfo('display', 'set')
VERSION: $Id: display.m,v 1.11 2008/08/04 17:04:25 ingo Exp $
HISTORY: 11-01-2007 M Hewitson
Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


0001 % DISPLAY overloads display functionality for mfir objects. 0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0003 % 0004 % DESCRIPTION: DISPLAY overloads display functionality for mfir objects. 0005 % 0006 % CALL: txt = display(mfir) 0007 % 0008 % INPUT: mfir - IIR filter object 0009 % 0010 % OUTPUT: txt - cell array with strings to display the mfir object 0011 % 0012 % M-FILE INFO: Get information about this methods by calling 0013 % >> mfir.getInfo('display') 0014 % 0015 % Get information about a specified set-plist by calling: 0016 % >> mfir.getInfo('display', 'set') 0017 % 0018 % VERSION: $Id: display.m,v 1.11 2008/08/04 17:04:25 ingo Exp $ 0019 % 0020 % HISTORY: 11-01-2007 M Hewitson 0021 % Creation 0022 % 0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0024 0025 function varargout = display(varargin) 0026 0027 %%% Check if this is a call for parameters 0028 if utils.helper.isinfocall(varargin{:}) 0029 varargout{1} = getInfo(varargin{3}); 0030 return 0031 end 0032 0033 % Get minfo objects 0034 objs = utils.helper.collect_objects(varargin(:), 'mfir'); 0035 0036 % get display text 0037 txt = utils.helper.objdisp(objs); 0038 0039 if nargout == 0 0040 for ii=1:length(txt) 0041 disp(txt{ii}); 0042 end 0043 else 0044 varargout{1} = txt; 0045 end 0046 end 0047 0048 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0049 % Local Functions % 0050 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0051 0052 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0053 % 0054 % FUNCTION: getInfo 0055 % 0056 % DESCRIPTION: Get Info Object 0057 % 0058 % HISTORY: 11-07-07 M Hewitson 0059 % Creation. 0060 % 0061 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0062 0063 function ii = getInfo(varargin) 0064 if nargin == 1 && strcmpi(varargin{1}, 'None') 0065 sets = {}; 0066 pl = []; 0067 else 0068 sets = {'Default'}; 0069 pl = getDefaultPlist; 0070 end 0071 % Build info object 0072 ii = minfo(mfilename, 'mfir', '', 'Output', '$Id: display.m,v 1.11 2008/08/04 17:04:25 ingo Exp $', sets, pl); 0073 end 0074 0075 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0076 % 0077 % FUNCTION: getDefaultPlist 0078 % 0079 % DESCRIPTION: Get Default Plist 0080 % 0081 % HISTORY: 11-07-07 M Hewitson 0082 % Creation. 0083 % 0084 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0085 0086 function plo = getDefaultPlist() 0087 plo = plist(); 0088 end 0089