MATLAB Function Reference Previous page   Next Page
xlsfinfo

Determine if file contains Microsoft Excel (.xls) spreadsheet

Syntax

Description

type = xlsfinfo('filename') returns the string 'Microsoft Excel Spreadsheet' in the type output if the file specified by filename can be read by the MATLAB function xlsread. Otherwise, type is the empty string.

[type, sheets] = xlsfinfo('filename') returns in the sheets output a cell array of strings containing the names of each spreadsheet in the file.

xlsfinfo filename is the command format for xlsfinfo.

Examples

When filename is an Excel spreadsheet,

See Also

xlsread, xlswrite


Previous page  xlim, ylim, zlim xlsread Next page

© 1994-2005 The MathWorks, Inc.