Is it possible to run multiple MATLAB livescripts from a configuration file?

12 views (last 30 days)
I have multiple standard livescripts that I need to run against many datasets keeping the main advantage of livescripts (embeddeding their outputs within the file).
Previosuly, I thought about making a seperate script to call them all at once. However, it turns out that Run function can't embed the outputs of the live script if it run outside the live editor.
In Python, however; I can run any number of jupyter notebooks from a JSON configuration file with any parameters keeping their outputs. Is there any equiavlent solution for this in MATLAB?
  3 Comments
Omar Khater
Omar Khater on 29 Jun 2022
Well, my question might be broken into 2 parts:
  • Run one livescript from a configuration file (i.e., pass parameters to the script)
  • Run multiple livescripts from a configuration file
The important part in both questions is the ability to do so with an embedded output.
Walter Roberson
Walter Roberson on 29 Jun 2022
There is no documented way of doing that, at least none that I know of.
If you could run one livescript in LiveScript mode from the command line or .m file, then you could have a script that read from a configuration file to determine what input to load and which other scripts to call, and that would give you a way to run an arbitrary number of other LiveScripts in LiveScript mode, with the outputs for all of them put together in the same "live" output stream.
However, I am not aware at the moment of any way to launch even one Live Script in Live Script mode.

Sign in to comment.

Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!