SCM

SCM Repository

[batman] Annotation of /SplineFitBATMAN_MATLABcode/write_mixed_csv.m
ViewVC logotype

Annotation of /SplineFitBATMAN_MATLABcode/write_mixed_csv.m

Parent Directory Parent Directory | Revision Log Revision Log


Revision 346 - (view) (download)

1 : jie 346 function write_mixed_csv(filedir, strings)
2 :     % written 120213 Dr. Jie Hao, Imperial College London
3 :     fid = fopen(filedir,'w');
4 :    
5 :     fmtString = [repmat('%s,',1,size(strings,2)-1),'%s\n'];
6 :     for i = 1:size(strings,1)
7 :     for j = 1:size(strings,2)
8 :     st{j,i} = ['"' strings{i,j} '"'];
9 :     end
10 :     end
11 :     fprintf(fid,fmtString,st{:});
12 :     fclose(fid);

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge