1333 1

[Weka及其他] MATLAB课程:代码示例之Programming(六) [推广有奖]

企业贵宾

已卖:160份资源

巨擘

0%

还不是VIP/贵宾

-

威望
4
论坛币
624047 个
通用积分
180.4253
学术水平
918 点
热心指数
987 点
信用等级
841 点
经验
399113 点
帖子
9786
精华
48
在线时间
17322 小时
注册时间
2014-8-19
最后登录
2022-11-2

楼主
widen我的世界 学生认证  发表于 2016-3-9 14:56:08 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

MATLAB课程:代码示例之Programming(六)

Call COM Objects


Access COM components and ActiveX® controls from MATLAB®

The Microsoft® Component Object Model (COM) provides a framework for integrating reusable, binary software components into an application. Because components are implemented with compiled code, the source code can be written in programming languages that support COM. Upgrades to applications are simplified, as components can simply be swapped without the need to recompile the entire application. In addition, a component's location is transparent to the application, so components can be relocated to a separate process or even a remote system without having to modify the application.

Alternatively, consider using the Microsoft .NET Framework.

MATLAB supports COM and the .NET Framework integration on the Microsoft Windows® platform only.



Functions

actxserver

Create COM server

actxcontrol

Create Microsoft ActiveX control in figure window

actxcontrollist

List currently installed Microsoft ActiveX controls

actxcontrolselect

Create Microsoft ActiveX control from UI

actxGetRunningServer

Handle to running instance of Automation server

iscom

Determine whether input is COM or ActiveX object



isprop

Determine whether input is COM object property

get

Get property value from interface, or display properties

set

Set object or interface property to specified value

addproperty

Add custom property to COM object

deleteproperty

Remove custom property from COM object

inspect

Open Property Inspector

propedit

Open built-in property page for control

fieldnames

Field names of structure, or public fields of object



ismethod

Determine whether input is COM object method

methods

Class method names

methodsview

View class methods

invoke

Invoke method on COM object or interface, or display methods



isevent

Determine whether input is COM object event

events

List of events COM object can trigger

eventlisteners

List event handler functions associated with COM object events

registerevent

Associate event handler for COM object event at run time

unregisterallevents

Unregister all event handlers associated with COM object events at run time

unregisterevent

Unregister event handler associated with COM object event at run time



isinterface

Determine whether input is COM interface

interfaces

List custom interfaces exposed by COM server object

release

Release COM interface








Examples and How ToMicrosoft Office Examples
  • Write Data to Excel Spreadsheet Using ActiveX
  • Read Spreadsheet Data Using Excel as Automation Server
  • Change Cursor in Spreadsheet
  • Change Row Height in Range of Spreadsheet Cells
  • Insert Spreadsheet After First Sheet
  • Connect to Existing Excel Application
  • Display Message for Workbook OnClose Event
  • Explore COM Objects


ActiveX Control Examples
  • MATLAB Sample ActiveX Control mwsamp
  • Redraw Circle in mwsamp Control
  • Display Event Messages from mwsamp Control
  • Add Position Property to mwsamp Control
  • Combine Event Handlers as MATLAB Local Functions
  • Save mwsamp2 COM Control
  • Deploy ActiveX Controls Requiring Run-Time Licenses


Internet Explorer Examples
  • Use Internet Explorer in MATLAB Figure




Concepts
  • MATLAB COM Integration
  • Getting Started with COM
  • Registering Controls and Servers
  • Create COM Objects
  • Handle COM Data in MATLAB
  • COM Object Properties
  • COM Methods
  • COM Events
  • COM Event Handlers
  • Save and Delete COM Objects
  • COM Object Interfaces
  • COM Collections
  • Supported Client/Server Configurations
  • Microsoft Forms 2.0 Controls
  • MATLAB Application as DCOM Client

Troubleshooting
  • MATLAB COM Support Limitations
  • Interpreting Argument Callouts in COM Error Messages

Related Information
  • Call .NET Libraries
  • MATLAB COM Automation Server
  • Is it possible to call Excel Macro Functions from MATLAB?


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Programming MATLAB课程 Program MATLAB atlab MATLAB课程 代码示例 Programming CallCOMObjects


https://www.cda.cn/?seo-luntan
高薪就业·数据科学人才·16年教育品牌

沙发
我愿一生孤独 在职认证  发表于 2016-3-9 14:57:09
挺有学问的,厉害。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-9 05:26