SCM

SCM Repository

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

View of /SplineFitBATMAN_MATLABcode/write_mixed_csv.m

Parent Directory Parent Directory | Revision Log Revision Log


Revision 346 - (download) (annotate)
Tue Nov 11 03:01:17 2014 UTC (2 years, 9 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  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge