Load both MatLab and Simulink into the background.
2 views (last 30 days)
Is it possible to write a script outside of MatLab, that'll open MatLab without popping up the GUI interface? Sort of like load_system does compared to open_system? If you can load MatLab into the "background" is it possible to load in models using load_system? I want to make a program that can open MatLab and a Simulink model without the user knowing that either has been opened and I didn't know if it was possible to do so. Thanks!
A Jenkins on 19 Aug 2014
Edited: A Jenkins on 19 Aug 2014
What are you calling it from? If you use the MATLAB COM Automation Sever, a sample VB script would look like this:
Dim MatLab As Object
Dim Result As String
Set MatLab = CreateObject("Matlab.Application")
MatLab.Visible = False
Result = MatLab.Execute("surf(peaks)")
MsgBox ("View Result.")
( Execute() will call Matlab commands as if you typed them at the command line, so you can add your calls to Simulink there.)