Nested Live Script Execution Issue in MATLAB 2023b

6 visualizaciones (últimos 30 días)
Alireza Ghaderi
Alireza Ghaderi el 17 de Nov. de 2023
Respondida: Pavan Sahith el 6 de Ag. de 2024
I recently encountered an issue while running MATLAB 2023b where I'm unable to execute a Live Script (.mlx) from within another Live Script in a batch processing context. Specifically, my scenario involves a batch processor script (also a .mlx file) designed to run another Live Script multiple times for different sets of data.
The error message I receive is "Nested Live Editor execution is not supported." This behavior seems to be new in the 2023b version, as the same code worked in earlier versions.
Could you help me understand why this limitation has been introduced in MATLAB 2023b? Additionally, I would appreciate any recommendations or best practices for handling such scenarios where a batch process needs to execute a Live Script multiple times. Are there alternative approaches or workarounds that align with MATLAB's intended usage patterns?
Thank you for your assistance!

Respuestas (1)

Pavan Sahith
Pavan Sahith el 6 de Ag. de 2024
Hello,
I also encountered a similar issue when using the 'export() function in nested live scripts to export a live script in MATLAB R2024a. Interestingly, the same code worked perfectly in version R2023a.
While I don't have a detailed explanation or reason for this behavior, I found a workaround that resolved the issue for me.
Instead of running 'export()' within another live script, I used a regular .m file. This approach helped me avoid the nested live script execution issue.
So,in your case, if it's possible you might consider converting the Live Script you want to run multiple times into a regular .m file. You can then call this .m file from your batch processor script. This should help you bypass the "Nested Live Editor execution is not supported" error.
Hope it Helps !

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by