How to run a WSL command from Matlab?

16 views (last 30 days)
Renato
Renato on 15 Jul 2023
Answered: the cyclist on 16 Jul 2023
Hi everyone... I use an application on WSL called "ss" that I usually run on WSL Terminal, in VS Code. I need to create a Matlab script to run it N times, after automatically changing some entry variables in the same Matlab script. Any idea how can I call the "./ss" command directly from my Matlab script? Thanks

Answers (1)

the cyclist
the cyclist on 16 Jul 2023
You can use the system function to execute an operating system command

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!