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

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