- 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 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
Risposta accettata
MathWorks Support Team
il 27 Giu 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:
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Enterprise Deployment with MATLAB Production Server in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!