Mercurial > hg > camir-aes2014
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function T = som_table_print(sTable,fid,fmt) | |
2 | |
3 %SOM_TABLE_PRINT Print a table to a file / standard output. | |
4 % | |
5 % som_table_print(sTable,[fid],[fmt]) | |
6 % | |
7 % som_table_print(sTable) | |
8 % som_table_print(sTable,fid,'html') | |
9 % | |
10 % Input and output arguments ([]'s are optional): | |
11 % sTable (struct) a table struct (see SOM_TABLE_STRUCT) | |
12 % [fid] (scalar) a file id (from FOPEN, for example) | |
13 % (empty) by default standard output (fid=1) is used | |
14 % [fmt] (string) 'txt' (default), 'ps', 'pdf' or 'html' | |
15 % the output format type | |
16 % | |
17 % See also SOM_TABLE_STRUCT, SOM_STATS_TABLE, SOM_STATS_REPORT. | |
18 | |
19 % Contributed to SOM Toolbox 2.0, January 2nd, 2002 by Juha Vesanto | |
20 % Copyright (c) by Juha Vesanto | |
21 % http://www.cis.hut.fi/projects/somtoolbox/ | |
22 | |
23 % Version 2.0beta juuso 020102 | |
24 | |
25 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
26 | |
27 if nargin<2 | isempty(fid) | isnan(fid), fid = 1; end | |
28 if nargin<3 | isempty(fmt) | isnan(fmt), fmt = 'txt'; end | |
29 | |
30 rowlines = 0; | |
31 longtable = 0; | |
32 | |
33 T = rep_utils({'inserttable',sTable,rowlines,longtable},fmt,fid); | |
34 | |
35 return; | |
36 | |
37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |