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

1 view (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 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

More Answers (0)

Categories

Find more on Enterprise Deployment with MATLAB Production Server in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!