can deployed application run the 'run' function?

we'd like to build a matlab exam system. In this system, we run the script file and compare the output to score the script. The gui we run in matlab can realize this, but when we doploy this gui to a exe, we can not run the script file.Plz help,thanks

2 comentarios

Have you investigated the MATLAB Grader service?
ty z
ty z el 24 de En. de 2022
sorry i havent but i will do it, thank you

Iniciar sesión para comentar.

 Respuesta aceptada

Voss
Voss el 23 de En. de 2022

0 votos

Unfortunately, run() is not supported in deployed applications.

4 comentarios

ty z
ty z el 24 de En. de 2022
thank you!
is there any work-around for this one? I really need to run a script from a deployed app
Voss
Voss el 9 de Mayo de 2024
yourScript

instead of

run("yourScript.m")
Steven Lord
Steven Lord el 9 de Mayo de 2024
From the documentation "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any function or process that dynamically generates new MATLAB code will not work against MATLAB Runtime."
So if you want your deployed application to run a script that was not present when it was compiled, that's not possible.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.

Preguntada:

el 23 de En. de 2022

Comentada:

el 9 de Mayo de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by