- 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!