Processing each data automatically in a loop
Mostra commenti meno recenti
for i=0:287
c = '.dat';
i=int2str(i);
str = append(i,c);
[filename,pathname] = uigetfile(str);
fileID = fopen(filename, 'r');
dataArray = textscan(fileID, '%f');
fclose(fileID);
radarData = dataArray{1};
clearvars fileID dataArray ans;
"data processing part"
end
I have 288 data in .dat format naming like 0.dat, 1.dat, 2.dat,............,287.dat,288.dat. When I run the above code, a popup window appears to select the dataevery time loop runs. How to automate the data selection process?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Low-Level File I/O in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!