How do I view all MATLAB automation server methods in Visual Basic?

4 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
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:
  • Select the Project Menu
  • Select Reference from the subsequent menu
  • Check the box next to the MATLAB Automation Server Type Library
  • Click OK
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

Weitere Antworten (0)

Kategorien

Mehr zu Enterprise Deployment with MATLAB Production Server finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by