Assume there\'s a myfile.csv with variable names in the first row and decimal numbers in the following ones. In Matlab I\'d like to read the header line and the decimal numbers
To extract the first line, you just need
fid = fopen('myfile.csv'); a = textscan(fid,'%s',1); fclose(fid);