sheetnames
说明
示例
输入参数
filename
— 要读取的文件的名称
字符向量 | 字符串标量
要读取的文件的名称,指定为字符向量或字符串标量。
根据文件的位置,filename
可以采用下列形式之一。
位置 | 形式 | ||||||||
---|---|---|---|---|---|---|---|---|---|
当前文件夹或 MATLAB® 路径上的文件夹 | 文件的名称。 示例: | ||||||||
其他本地文件夹 | 文件的完整或相对路径。 示例: 示例: | ||||||||
远程位置 | 文件的完整路径,指定为以下形式的统一资源定位器 (URL):
根据远程位置,
有关详细信息,请参阅处理远程数据。 示例: |
在装有 Microsoft® Excel® 软件的 Windows® 系统中,
sheetnames
函数支持:.xls
、.xlsm
、.xlsx
、.xltm
、.xltx
、.xlsb
和.ods
。如果您的系统没有适用于 Windows 的 Excel,则
sheetnames
仅支持:.xls
、.xlsx
、.xlsm
、.xltx
和.xltm
文件。
数据类型: char
| string
版本历史记录
在 R2019b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)