MATLAB: Acces to system functions trought Matlab Gui

codeMATLABmatlab functionmatlab guisystemwifi

Hello,
I need to Know if there is a function in matlab 2017b to acces and contorl system capabilities of my computer like turning wifi on/off, calling another program, Opening a browser, Accessing the control panel, etc.
I am developing a program and I need to acces to these kind of system function from a guide in matlab.
Any help is apreciated
Thanks,
José.

Best Answer

MATLAB does not include any functions for those particular purposes.
MATLAB includes system() in all operating systems. That can be used to access Windows CMD.EXE on MS Windows systems, or the shell on Linux or Mac.
MATLAB includes web() on all operating systems. That can be used to open a browser. See https://www.mathworks.com/help/matlab/ref/web.html
On MS Windows systems, MATLAB includes actxserver to permit DCOM / ActiveX server objects to be invoked and interacted with.
On MS Windows systems, MATLAB can access .NET assemblies; see https://www.mathworks.com/help/matlab/using-net-libraries-in-matlab.html
Example: on OS-X / MacOS, to turn off WiFi you could use
system('networksetup -setairportpower en1 off')
(en1 might need to be changed on some systems.)
Related Question