MATLAB: I aam having error when i am trying to load csv file and i am having error like this which i mentioned so please help me someone

data import

fid=fopen('Main.csv');
>> I=textscan(fid,'%f %f','HeaderLines', 'Delimiter',',', '\r\n','ReturnOnError',false);
Error using textscan
HeaderLines must be integer-valued.

Best Answer

Try
[num,txt,raw] = xlsread('Book1.csv');
You have all the data in your hand.