- The Recommended way to execute a script on a Unix system from a Windows system is via SSH. MATLAB supports SSH through the use of "system" command. This allows you to execute OS commands using MATLAB.
- Another way is to set up a network service such as HTTPS in Unix system which listens for the requests to execute these bash scripts. Now you can use "webwrite" or "webread" functions in MATLAB which writes data to the RESTful web service from Windows and these bash script would be executed in Unix.
- Another alternative is you can use Windows Subsystem for Linux (WSL) which allows you to run Unix like environment directly from windows without dual booting the system. In this case you can execute bash scripts in Unix using MATLAB present in windows.
- https://www.mathworks.com/help/matlab/ref/system.html
- https://www.mathworks.com/help/matlab/ref/webread.html
- https://www.mathworks.com/help/matlab/ref/webwrite.html
- https://www.mathworks.com/matlabcentral/answers/1953654-how-to-install-matlab-on-wsl-ubuntu-18-04