Added source Matlab code for reference
This commit is contained in:
parent
b8af977117
commit
b5d99903d2
186 changed files with 61405 additions and 1 deletions
19
matlab/independent/myxlswrite.m
Normal file
19
matlab/independent/myxlswrite.m
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
function myxlswrite(file, A)
|
||||
% A is a cell matrix, each element is a string
|
||||
% Lu Cheng, 25.11.2010
|
||||
|
||||
h = fopen(file,'w+');
|
||||
[nRow nCol] = size(A);
|
||||
|
||||
for i=1:nRow
|
||||
%tmpLine = '';
|
||||
for j=1:nCol-1
|
||||
if isnumeric(A{i,j})
|
||||
A{i,j} = num2str(A{i,j});
|
||||
end
|
||||
fprintf(h,'%s\t',A{i,j});
|
||||
end
|
||||
fprintf(h,'%s\n',A{i,nCol});
|
||||
end
|
||||
|
||||
fclose(h);
|
||||
Loading…
Add table
Add a link
Reference in a new issue