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?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
fooozie mtlb
il 15 Ott 2015
Modificato: fooozie mtlb
il 15 Ott 2015
cd('D:\coding\datawave');
fid=fopen('file_21.txt');
data=textscan(fid,'%s %s %s %f %f');
height=cell2mat(data(4));
1 Commento
KSSV
il 15 Ott 2015
if all the data are numbers you can use importdata. Also go through fscanf, textread, load etc.
Risposta accettata
Martin Schätz
il 15 Ott 2015
Do as sugested by previous answer, import, fscanf, textread, load... if it doesn't have any structer. If it does i suggest to use excel and xlsread. It can save you a lot of time.
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!