Daniel@0: function T = som_table_print(sTable,fid,fmt) Daniel@0: Daniel@0: %SOM_TABLE_PRINT Print a table to a file / standard output. Daniel@0: % Daniel@0: % som_table_print(sTable,[fid],[fmt]) Daniel@0: % Daniel@0: % som_table_print(sTable) Daniel@0: % som_table_print(sTable,fid,'html') Daniel@0: % Daniel@0: % Input and output arguments ([]'s are optional): Daniel@0: % sTable (struct) a table struct (see SOM_TABLE_STRUCT) Daniel@0: % [fid] (scalar) a file id (from FOPEN, for example) Daniel@0: % (empty) by default standard output (fid=1) is used Daniel@0: % [fmt] (string) 'txt' (default), 'ps', 'pdf' or 'html' Daniel@0: % the output format type Daniel@0: % Daniel@0: % See also SOM_TABLE_STRUCT, SOM_STATS_TABLE, SOM_STATS_REPORT. Daniel@0: Daniel@0: % Contributed to SOM Toolbox 2.0, January 2nd, 2002 by Juha Vesanto Daniel@0: % Copyright (c) by Juha Vesanto Daniel@0: % http://www.cis.hut.fi/projects/somtoolbox/ Daniel@0: Daniel@0: % Version 2.0beta juuso 020102 Daniel@0: Daniel@0: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Daniel@0: Daniel@0: if nargin<2 | isempty(fid) | isnan(fid), fid = 1; end Daniel@0: if nargin<3 | isempty(fmt) | isnan(fmt), fmt = 'txt'; end Daniel@0: Daniel@0: rowlines = 0; Daniel@0: longtable = 0; Daniel@0: Daniel@0: T = rep_utils({'inserttable',sTable,rowlines,longtable},fmt,fid); Daniel@0: Daniel@0: return; Daniel@0: Daniel@0: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%