batch file processing (.txt files) for data analysis
Hi, I have more than 200 ‘.txt’ files to process the data. Each file has same number of coloumns, i.e 10, but number of rows vary. Imported data to array variables and created a structure of each file. And further processing data of individual file for analysis.
Hy=importdata(‘hyde0710p1c1.15txt’);
Ii=importdata(‘iisc0710p1c1.15txt’);
save(‘Hy710.txt’,’Hy’); save(‘Ii710.txt’,’Ii’);
hyde_org=struct(‘GPSTOW’,Hy(:,1),’PRN’,Hy(:,2),’EL’,Hy(:,3),’AZ’,Hy(:,4),’IPPMLat’,Hy(:,5),’IPPGeoLong’,Hy(:,6),’IPPGeoLat’,Hy(:,7),’SlantCodeTEC’,Hy(:,8),’SlantSmoothTEC’,Hy(:,9),’VTEC’,Hy(:,10));
iisc_org=struct(‘GPSTOW’,Ii(:,1),’PRN’,Ii(:,2),’EL’,Ii(:,3),’AZ’,Ii(:,4),’IPPMLat’,Ii(:,5),’IPPGeoLong’,Ii(:,6),’IPPGeoLat’,Ii(:,7),’SlantCodeTEC’,Ii(:,8),’SlantSmoothTEC’,Ii(:,9),’VTEC’,Ii(:,10));
But,now I need to append all the data(to append rows one after the other file’s) of 200 files in ta single new file for processing.
Can anyone help please?Hi, I have more than 200 ‘.txt’ files to process the data. Each file has same number of coloumns, i.e 10, but number of rows vary. Imported data to array variables and created a structure of each file. And further processing data of individual file for analysis.
Hy=importdata(‘hyde0710p1c1.15txt’);
Ii=importdata(‘iisc0710p1c1.15txt’);
save(‘Hy710.txt’,’Hy’); save(‘Ii710.txt’,’Ii’);
hyde_org=struct(‘GPSTOW’,Hy(:,1),’PRN’,Hy(:,2),’EL’,Hy(:,3),’AZ’,Hy(:,4),’IPPMLat’,Hy(:,5),’IPPGeoLong’,Hy(:,6),’IPPGeoLat’,Hy(:,7),’SlantCodeTEC’,Hy(:,8),’SlantSmoothTEC’,Hy(:,9),’VTEC’,Hy(:,10));
iisc_org=struct(‘GPSTOW’,Ii(:,1),’PRN’,Ii(:,2),’EL’,Ii(:,3),’AZ’,Ii(:,4),’IPPMLat’,Ii(:,5),’IPPGeoLong’,Ii(:,6),’IPPGeoLat’,Ii(:,7),’SlantCodeTEC’,Ii(:,8),’SlantSmoothTEC’,Ii(:,9),’VTEC’,Ii(:,10));
But,now I need to append all the data(to append rows one after the other file’s) of 200 files in ta single new file for processing.
Can anyone help please? Hi, I have more than 200 ‘.txt’ files to process the data. Each file has same number of coloumns, i.e 10, but number of rows vary. Imported data to array variables and created a structure of each file. And further processing data of individual file for analysis.
Hy=importdata(‘hyde0710p1c1.15txt’);
Ii=importdata(‘iisc0710p1c1.15txt’);
save(‘Hy710.txt’,’Hy’); save(‘Ii710.txt’,’Ii’);
hyde_org=struct(‘GPSTOW’,Hy(:,1),’PRN’,Hy(:,2),’EL’,Hy(:,3),’AZ’,Hy(:,4),’IPPMLat’,Hy(:,5),’IPPGeoLong’,Hy(:,6),’IPPGeoLat’,Hy(:,7),’SlantCodeTEC’,Hy(:,8),’SlantSmoothTEC’,Hy(:,9),’VTEC’,Hy(:,10));
iisc_org=struct(‘GPSTOW’,Ii(:,1),’PRN’,Ii(:,2),’EL’,Ii(:,3),’AZ’,Ii(:,4),’IPPMLat’,Ii(:,5),’IPPGeoLong’,Ii(:,6),’IPPGeoLat’,Ii(:,7),’SlantCodeTEC’,Ii(:,8),’SlantSmoothTEC’,Ii(:,9),’VTEC’,Ii(:,10));
But,now I need to append all the data(to append rows one after the other file’s) of 200 files in ta single new file for processing.
Can anyone help please? batch file .txt file processing MATLAB Answers — New Questions