MATLAB: Cell contents reference from a non-cell array object

excelMATLAB

I am trying to plot several graphs using data from excel. I tried using cell2mat but it gives me this error. Can someone clarify this?

Best Answer

xlsread can return up to 4 outputs, The first of the outputs, the one you have called num, is always a numeric array, never a cell array. There is no need to call cell2mat() there as it is already a numeric array.