SCM Repository
View of /SplineFitBATMAN_MATLABcode/write_mixed_csv.m
Parent Directory
|
Revision Log
Revision 346 -
(download)
(annotate)
Tue Nov 11 03:01:17 2014 UTC (4 years, 3 months ago) by jie
File size: 343 byte(s)
Tue Nov 11 03:01:17 2014 UTC (4 years, 3 months ago) by jie
File size: 343 byte(s)
matlab
function write_mixed_csv(filedir, strings) % written 120213 Dr. Jie Hao, Imperial College London fid = fopen(filedir,'w'); fmtString = [repmat('%s,',1,size(strings,2)-1),'%s\n']; for i = 1:size(strings,1) for j = 1:size(strings,2) st{j,i} = ['"' strings{i,j} '"']; end end fprintf(fid,fmtString,st{:}); fclose(fid);
R-Forge@R-project.org | ViewVC Help |
Powered by ViewVC 1.0.0 |