Importing data from specific columns of a data structure
1 view (last 30 days)
Show older comments
Hello all,
I am working on a large data file and want to extract the data for specific dates. The format of the file resembles the following:
Date Location Degree1 Degree2
20200101 NY 0 1
20200102 NY 0 0
20200103 NY 1 3
Now what if I want to extract all the data from 20200101 to 20200103?
0 Comments
Accepted Answer
Voss
on 25 Jun 2022
T = readtable('data.txt')
T(T.Date >= 20200101 & T.Date <= 20200103,:)
3 Comments
More Answers (0)
See Also
Categories
Find more on Standard File Formats 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!