COM interface to open Matlab from another software
8 comentarios
So to be clear, in your software if you do:
matlab:=createCOMObject("matlab.Application")
you get a window that open and then is probably force-closed by the OS. But if you do:
matlab = actxserver('matlab.Application')
in matlab, the same window that appear stays up? That is very odd, the two should be equivalent.
What about if you use a vb script. Save the following in a text file with extension .vbs
Set matlab = CreateObject("Matlab.Application")
Matlab.Visible = 1
and run this script from Windows command prompt with
cscript nameofscript.vbs
Again, this should pop up the matlab window and not close it. All three are equivalent, they ask Windows to instantiate a matlab COM object.
Note: some antivirus softwares and some configurations of windows may prevent you from running vb scripts.
Respuestas (0)
Categorías
Más información sobre Use COM Objects in MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!