- Select the Project Menu
- Select Reference from the subsequent menu
- Check the box next to the MATLAB Automation Server Type Library
- Click OK
How do I view all MATLAB automation server methods in Visual Basic?
4 次查看(过去 30 天)
显示 更早的评论
How do I view all MATLAB automation server methods in Visual Basic?
I would like to find the methods that are available when I use MATLAB as an automation server in Visual Basic. Also, I would want to be able to view MATLAB automation methods in the object browser and use the tab auto complete for the MATLAB methods. That is, I would like to type the object name followed by a period and be able to select the method I want to use.
For example:
Dim Matlab As Object
Set MatLab = CreateObject("Matlab.Application")
'Below I would want to see all the Matlab Automation methods
Result = MatLab.
采纳的回答
MathWorks Support Team
2009-6-27
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
You will be able to do this in Visual Basic if you reference the MATLAB Application Type Library. To do this:
Now you should be able to view MATLAB automation methods from the Visual Basic Object Browser under the Library called MLAPP. You will now also be able to see a list of MATLAB automation methods when the period is used:
Dim Matlab As MLApp.MLApp
Private Sub Command1_Click()
Set Matlab = New MLApp.MLApp
'The next line should show a list of MATLAB Automation methods
Matlab.
End Sub
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Enterprise Deployment with MATLAB Production Server 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!