Home > classes > @miir > display.m

display

PURPOSE ^

DISPLAY overloads display functionality for miir objects.

SYNOPSIS ^

function txt = display(fs)

DESCRIPTION ^

 DISPLAY overloads display functionality for miir objects.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: DISPLAY overloads display functionality for miir objects.

 CALL:        txt  = display(miir)

 INPUT:       miir - IIR filter object

 OUTPUT:      txt  - cell array with strings to display the miir object

 VERSION:     $Id: display.m,v 1.8 2007/10/24 10:55:11 ingo Exp $

 HISTORY:     11-01-2007 M Hewitson
                 Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function txt = display(fs)
0002 % DISPLAY overloads display functionality for miir objects.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: DISPLAY overloads display functionality for miir objects.
0007 %
0008 % CALL:        txt  = display(miir)
0009 %
0010 % INPUT:       miir - IIR filter object
0011 %
0012 % OUTPUT:      txt  - cell array with strings to display the miir object
0013 %
0014 % VERSION:     $Id: display.m,v 1.8 2007/10/24 10:55:11 ingo Exp $
0015 %
0016 % HISTORY:     11-01-2007 M Hewitson
0017 %                 Creation
0018 %
0019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0020 
0021 txt = {};
0022 
0023 for i=1:length(fs)
0024   f = fs(i);
0025   banner_start = sprintf('-------- %s / %s ------------', get(f, 'name'), get(f, 'version'));
0026   txt{end+1} = banner_start;
0027 
0028   txt{end+1} = ' ';
0029   txt{end+1} = sprintf('created: %s', char(f.created));
0030   txt{end+1} = sprintf('version: %s', f.version);
0031   txt{end+1} = sprintf('   name: %s', f.name);
0032   txt{end+1} = ['     fs: ' num2str(f.fs)];
0033   txt{end+1} = ['  ntaps: ' num2str(f.ntaps)];
0034   txt{end+1} = ['      a: ' num2str(f.a)];
0035   txt{end+1} = ['      b: ' num2str(f.b)];
0036   txt{end+1} = ['   gain: ' num2str(f.gain)];
0037   txt{end+1} = [' histin: ' num2str(f.histin)];
0038   txt{end+1} = ['histout: ' num2str(f.histout)];
0039 
0040   txt{end+1} = sprintf('Parameters:');
0041   txt_plist = display(f.plist);
0042 
0043   for ii = 1:length(txt_plist)
0044     txt{end+1} = txt_plist{ii};
0045   end
0046 
0047   txt{end+1} = ' ';
0048 
0049   banner_end(1:length(banner_start)) = '-';
0050   txt{end+1} = banner_end;
0051 
0052   txt{end+1} = ' ';
0053   txt{end+1} = ' ';
0054 end
0055 
0056 if nargout == 0
0057   for ii=1:length(txt)
0058     disp(txt{ii});
0059   end
0060 end
0061 
0062 
0063 % END

Generated on Fri 02-Nov-2007 19:39:27 by m2html © 2003