Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2;04-Mär-2013;00:00:00;152
- 2;04-Mär-2013;00:10:00;150.13187
- 2;04-Mär-2013;00:20:00;149.29033
- 2;04-Mär-2013;00:30:00;149.31183
- clc
- clear all
- filelist=dir('*.csv');
- filenum = length(filelist);
- for i=1:filenum
- [~, name, ~] = fileparts(filelist(i).name);
- fprintf('step: %dn', i);
- fid1 = fopen(filelist(i).name,'r');
- fprintf('%sn', filelist(i).name);
- fid2 = fopen([name '.csv'],'w');
- fwrite(fid2,strrep(fread(fid1,'*char')','.',','));
- fclose(fid1);
- fclose(fid2);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement