how to read csv file with header in matlab 2006
Show older comments
my problem is to read csv file with header in matlab 2006,how to solve this,any body can help me
Answers (1)
Geoff Hayes
on 10 Nov 2014
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.)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!