iscom
确定输入是否为 COM 对象
说明
示例
测试是否为 COM 对象
测试 Microsoft® Excel® 应用程序的一个实例。MATLAB® 显示 true
,指示 Excel 应用程序是一个 COM 对象。
app = actxserver('Excel.Application');
iscom(app)
创建一个工作簿对象并进行测试。MATLAB 显示 false
,指示工作簿不是 COM 对象。
w = get(app,'workbooks');
iscom(w)
输入参数
c
— COM 对象
函数句柄
COM 对象,指定为函数句柄。
局限性
COM 函数只可以在 Microsoft Windows® 系统中使用。
扩展功能
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
版本历史记录
在 R2006a 之前推出
另请参阅
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)