annotate toolboxes/MIRtoolbox1.3.2/somtoolbox/som_table_print.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 function T = som_table_print(sTable,fid,fmt)
wolffd@0 2
wolffd@0 3 %SOM_TABLE_PRINT Print a table to a file / standard output.
wolffd@0 4 %
wolffd@0 5 % som_table_print(sTable,[fid],[fmt])
wolffd@0 6 %
wolffd@0 7 % som_table_print(sTable)
wolffd@0 8 % som_table_print(sTable,fid,'html')
wolffd@0 9 %
wolffd@0 10 % Input and output arguments ([]'s are optional):
wolffd@0 11 % sTable (struct) a table struct (see SOM_TABLE_STRUCT)
wolffd@0 12 % [fid] (scalar) a file id (from FOPEN, for example)
wolffd@0 13 % (empty) by default standard output (fid=1) is used
wolffd@0 14 % [fmt] (string) 'txt' (default), 'ps', 'pdf' or 'html'
wolffd@0 15 % the output format type
wolffd@0 16 %
wolffd@0 17 % See also SOM_TABLE_STRUCT, SOM_STATS_TABLE, SOM_STATS_REPORT.
wolffd@0 18
wolffd@0 19 % Contributed to SOM Toolbox 2.0, January 2nd, 2002 by Juha Vesanto
wolffd@0 20 % Copyright (c) by Juha Vesanto
wolffd@0 21 % http://www.cis.hut.fi/projects/somtoolbox/
wolffd@0 22
wolffd@0 23 % Version 2.0beta juuso 020102
wolffd@0 24
wolffd@0 25 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
wolffd@0 26
wolffd@0 27 if nargin<2 | isempty(fid) | isnan(fid), fid = 1; end
wolffd@0 28 if nargin<3 | isempty(fmt) | isnan(fmt), fmt = 'txt'; end
wolffd@0 29
wolffd@0 30 rowlines = 0;
wolffd@0 31 longtable = 0;
wolffd@0 32
wolffd@0 33 T = rep_utils({'inserttable',sTable,rowlines,longtable},fmt,fid);
wolffd@0 34
wolffd@0 35 return;
wolffd@0 36
wolffd@0 37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%