Thread Subject: Extract a specific portion of data from csv file

Subject: Extract a specific portion of data from csv file

From: Divakar

Date: 17 Oct, 2009 19:42:03

Message: 1 of 1

Hi

I am new to matlab Programing.

I am reading data from the csv file using textscan. ( file has 5 columns and 5000 rows with first column being dates and other columns are observations made on that date. )

Now i want to extract only the information (all columns ) starting from a specific date To a specific date and not all 5000 rows.
 
How do i do this?.. any inputs will be of great help.

Just for the information : I am trying to read many similar csv files (with different number of rows but same number of columns ) in a loop. At the end .. after being able to extract information between 2 specified dates from all the files ( to ensure the matrix dimensions are the same ) , i would like to add them up.

Thanks
Divakar

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
textscan Divakar 17 Oct, 2009 15:44:07
csv files Divakar 17 Oct, 2009 15:44:07
extract Divakar 17 Oct, 2009 15:44:07
rssFeed for this Thread

Contact us at files@mathworks.com