MATLAB: Problem opening excel csv file using xlsread

errorexcelxlsread

I am trying to use the xlsread function to open a part of a CVS excel file that is too large to open in excel (1.07 GB).
B = xlsread('programtest.csv','Sheet 1','A10:F28');
However, I get the following error:
??? Error: The server threw an exception.
Error in ==> xlsread at 250 ExcelWorkbook = Excel.workbooks.Open(file,0,true);
Error in ==> programtest at 5 B = xlsread('programtest.csv','Sheet 1','A10:F28');
Is there a way to solve this issue? Thanks

Best Answer

for CSV file you should use readtable() or csvread().