how to read csv file with header in matlab 2006

my problem is to read csv file with header in matlab 2006,how to solve this,any body can help me

Answers (1)

Rosna - have you tried csvread and starting at the first row that doesn't correspond to the header? For example, if your file is named myCsvFile.csv and it has just one header line, then you could try
M = csvread('myCsvFile.csv', 1);
where 1 indicates start reading from the second row (this integer input is zero-based, so if we wish to read from the first line, we would use 0. If we wish to read starting from the second line, we use 1. Etc.)

Asked:

on 10 Nov 2014

Answered:

on 10 Nov 2014

Community Treasure Hunt

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

Start Hunting!