MATLAB: How to import entire columns from an excel file into MATLAB 7.6 (R2008a)

columncolumnsexcelMATLABreadxlsread

I would like to import all of a column (column C for instance) into MATLAB. The data in the columns may be of mixed type (text and numerical).

Best Answer

The XLSREAD function can be used for importing excel files into MATLAB 7.6 (R2008a). You can read entire columns, for instance column C, of an excel file using the following syntax:
[num, txt, raw] = xlsread('filename.xls',1,'C:C');
For more information on the XLSREAD function consult the documentation by executing the following at the MATLAB prompt:
doc xlsread
Related Question