Read Text file

1 view (last 30 days)
Uday
Uday on 23 Aug 2011
Answered: Pontus Paulsson on 27 Nov 2019
I have some text file datasets in which first 4 lines has text and I wont to skip those line and read this text file.
The text file has only 3 column data sets lat lon emission 83.1 74.6 9.6e-11

Answers (2)

Fangjun Jiang
Fangjun Jiang on 23 Aug 2011
use textscan() with the 'Headerlines' option.

Pontus Paulsson
Pontus Paulsson on 27 Nov 2019
This is realy a week point with Matlab. Instead of having one smart funktion they have 50. It realy takes alot of time trying to figure out how one of them works. Just to realize this one might not do it... then you need to learn onther one nad so on. What about AI??
Just reading a simpel text takes a hell lot of coding and time. What dis I pay 3000 euro for??

Categories

Find more on Data Import and Export in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!