帮助中心帮助中心
将当前 MATLAB 注册为 COM 服务器
regmatlabserver
[status,message] = regmatlabserver
regmatlabserver 将当前 MATLAB® 可执行文件注册为 COM 自动化服务器。您必须以管理员身份运行 MATLAB 才能使用此函数。要将 MATLAB 注册为本地用户帐户中的 COM 服务器,请调用 comserver。
comserver
MATLAB 显示最小化的命令行窗口。
示例
[status,message] = regmatlabserver 返回注册状态和可能的错误消息(如果操作系统报告了错误消息)。
status
message
全部折叠
用以管理员身份运行选项启动 MATLAB。
在 MATLAB 提示符下,键入:
[s,msg] = regmatlabserver
s = 0 msg = ''
MATLAB 已成功注册。
0
MATLAB 的注册状态返回为 0 或非零。如果尝试注册 MATLAB 成功,status 为 0。否则 status 是非零值。
如果注册未成功,将以字符向量形式返回系统错误消息。
在 R2006a 之前推出
您点击的链接对应于以下 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office