Exclude first 2 rows of .dat file when using load
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to exclude the first two rows when using load
data = load('file.dat')
x = data(3:end,1);
y = data(3:end,2);
The one below obviously gives me a ASCII file error. But you get the idea of what I want.
0 Kommentare
Antworten (1)
madhan ravi
am 19 Nov. 2018
Bearbeitet: madhan ravi
am 19 Nov. 2018
convert your .dat to .txt and then follow your method
Siehe auch
Kategorien
Mehr zu Data Type Conversion 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!