Data import and Header Line
1 view (last 30 days)
Show older comments
Dhimitri Cekrezi
on 14 May 2021
Commented: Star Strider
on 14 May 2021
Hello everyone,
I have been given a file data0.txt which has the following info:
x0 y0 z0 f0
10 10 10 225
How can I import the data so that the header line (x0 y0 z0 f0) is ignored and the numeric data below are imported as a matrix?
Accepted Answer
Star Strider
on 14 May 2021
There are several ways to do this, likely the easiest is to use the readmatrix function (introduced in R2019a).
3 Comments
More Answers (0)
See Also
Categories
Find more on Data Import and Export in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!