dear sir, I try to call text file window from my current directory without no need to manually change text file name. Then just clicking which one to be exist one my current folder?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
fooozie mtlb
am 15 Okt. 2015
Kommentiert: fooozie mtlb
am 18 Okt. 2015
cd('D:\coding\datawave');
fid=fopen('file_21.txt'); % how can I choose another file like file_13.txt to become more flexible without no need write it manually????
data=textscan(fid,'%s %s %s %f %f');
height=cell2mat(data(4));
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Low-Level File I/O finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!