Matlab学习笔记——xlsfinfo函数

一、功能简介:

列举当前文件夹里(或指定文件夹)所有的文件与文件夹。

Matlab 6.5以后所有版本

二、使用方法:

typ = xlsfinfo(filename)
判断文件(filename)是否是Microsof Excel文件。

[typ, desc] = xlsfinfo(filename)
把数据表的名称返回到desc中。

[typ, desc, fmt] = xlsfinfo(filename)
把文件的格式返回到fmt中,比如说CSV or xls等。

三、简易用法

应用举例:[typ, desc, fmt] = xlsfinfo(‘myaccount.xls’)

typ =
Microsoft Excel Spreadsheet

desc =
‘Sheet1’ ‘Income’ ‘Expenses’

fmt =
xlWorkbookNormal 《Simulink与信号处理》

相关函数:xlsread, xlswrite

猜你喜欢

转载自blog.csdn.net/mao_hui_fei/article/details/80837122
今日推荐