Create a matrix with a text file- how to specify data I want in the matrix?
Afficher commentaires plus anciens
I would like to specify which data I want read in from a large textfile. The first bit of data is a string, such as "2011-02-03 05:28:10" (quotations included). How would I read in and create a matrix using only bits of data that begin with 2011-02 (ie data from Feb 2011)? The data is in chronological order in the text file, so if there is some beginning and ending parameterization I could use, that would work as well.
Réponse acceptée
Plus de réponses (1)
dpb
le 5 Oct 2013
0 votes
Generally it's much simpler to just read the file then select the subset desired for further manipulation.
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!