MATLAB Function Reference |
Determine if file contains Microsoft Excel (.xls
) spreadsheet
Syntax
[A, Descr] = xlsfinfo('filename')
Description
[A, Descr] = xlsfinfo('filename')
returns the character array 'Microsoft Excel Spreadsheet'
in A
if filename is an Excel spreadsheet. Returns an empty string if filename
is not an Excel spreadsheet. Descr
is a cell array of strings containing the name of each spreadsheet in the file.
Examples
When filename
is an Excel spreadsheet:
[a,descr] = xlsfinfo('tempdata.xls') a = Microsoft Excel Spreadsheet descr = 'Sheet1'
See Also
xlim, ylim, zlim | xlsread |