view AudioDegradationToolbox/writeCsvFile.m @ 28:76f45f5c9afd DoP tip

- added units * adaptiveEqualizer * applyMfccMeanAdaption - added corresponding data files for presets - modified applyImpulseReponse to use the estimated average group delay to adjust the output audio and keep the timestamps as is (was vice versa before) - added new units demos, incl one for applyLowpass
author SebastianEwert
date Tue, 21 Jan 2014 18:08:28 +0000
parents 953196fbfc94
children
line wrap: on
line source
function writeCsvFile(filename, cols_numeric, remainingColsCell)

numberOfAdditionalColumns = size(remainingColsCell,2);

fid = fopen(filename,'w');
for m=1:size(cols_numeric,1)
    fprintf(fid,'%f',cols_numeric(m,1));
    for n=2:size(cols_numeric,2)
        fprintf(fid,' %f',cols_numeric(m,n));
    end
    for n=1:numberOfAdditionalColumns
        fprintf(fid,' %s',remainingColsCell{m,n});
    end
    fprintf(fid,'\n');
end
fclose(fid);

end