Dear sir, I have 25 text files of detail about wave parameters. How could i write the command to extract data from my selection file?
Ältere Kommentare anzeigen
cd('D:\coding\datawave');
fid=fopen('file_21.txt');
data=textscan(fid,'%s %s %s %f %f');
height=cell2mat(data(4));
1 Kommentar
KSSV
am 15 Okt. 2015
if all the data are numbers you can use importdata. Also go through fscanf, textread, load etc.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!