annotate 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 |
|
rev |
line source |
matthiasm@15
|
1 function writeCsvFile(filename, cols_numeric, remainingColsCell)
|
matthiasm@15
|
2
|
matthiasm@15
|
3 numberOfAdditionalColumns = size(remainingColsCell,2);
|
matthiasm@15
|
4
|
matthiasm@15
|
5 fid = fopen(filename,'w');
|
matthiasm@15
|
6 for m=1:size(cols_numeric,1)
|
matthiasm@15
|
7 fprintf(fid,'%f',cols_numeric(m,1));
|
matthiasm@15
|
8 for n=2:size(cols_numeric,2)
|
matthiasm@15
|
9 fprintf(fid,' %f',cols_numeric(m,n));
|
matthiasm@15
|
10 end
|
matthiasm@15
|
11 for n=1:numberOfAdditionalColumns
|
matthiasm@15
|
12 fprintf(fid,' %s',remainingColsCell{m,n});
|
matthiasm@15
|
13 end
|
matthiasm@15
|
14 fprintf(fid,'\n');
|
matthiasm@15
|
15 end
|
matthiasm@15
|
16 fclose(fid);
|
matthiasm@15
|
17
|
matthiasm@15
|
18 end |