How do I import first two columns using csvread over a specific range without knowing the total number of rows?
Afficher commentaires plus anciens
I'm trying to use csvread for a specific range of the file, but the number of rows in the csv file changes for every file. Here's some code to help you understand what I want to do: csvread('03.csv',0,0,[0,0,:,1])
The goal is to read the first 2 columns in their entirety without knowing the total number of rows. The colon does not work, neither does leaving it blank (i.e., [0,0,,1]). Is there another way to tell it to read until there is no more data?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Import and Analysis dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!