comparison utilities/UTIL_printTabTable.m @ 38:c2204b18f4a2 tip

End nov big change
author Ray Meddis <rmeddis@essex.ac.uk>
date Mon, 28 Nov 2011 13:34:28 +0000
parents f233164f4c86
children
comparison
equal deleted inserted replaced
37:771a643d5c29 38:c2204b18f4a2
1 function UTIL_printTabTable(M, headers, format) 1 function UTIL_printTabTable(M, headers, format)
2 % printTabTable prints a matrix as a table with tabs 2 % printTabTable prints a matrix as a table with tabs
3 %headers are optional 3 %headers are optional
4 %headers=strvcat('firstname', 'secondname') 4 %headers=strvcat('firstname', 'secondname')
5 % printTabTable([1 2; 3 4],strvcat('a1','a2')); 5 % UTIL_printTabTable([1 2; 3 4],strvcat('a1','a2'));
6 6
7 if nargin<3 7 if nargin<3
8 format='%g'; 8 format='%g';
9 end 9 end
10 10