Info

This question is closed. Reopen it to edit or answer.

Working with csv files

1 view (last 30 days)
Ricardo
Ricardo on 16 Jan 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
I would like to know if there is a way to, when importing data from a csv file, choose only lines or colums where especific words (latitude for example) appear, so that in the end I have a matrix only with what I choose.
  1 Comment
Matt Kindig
Matt Kindig on 16 Jan 2013
Given that csvread/dlmread require numeric data, your best bet might be to read the file into matlab in full, separating by commas, and then matching to the desired string. If you can post a few lines of the file (that contain the target words), we can provide more information.

Answers (0)

Community Treasure Hunt

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

Start Hunting!