can deployed application run the 'run' function?

8 views (last 30 days)
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 Comments
Walter Roberson
Walter Roberson on 23 Jan 2022
Have you investigated the MATLAB Grader service?
ty z
ty z on 24 Jan 2022
sorry i havent but i will do it, thank you

Sign in to comment.

Accepted Answer

Voss
Voss on 23 Jan 2022
Unfortunately, run() is not supported in deployed applications.
  4 Comments
Voss
Voss on 9 May 2024
yourScript

instead of

run("yourScript.m")
Steven Lord
Steven Lord on 9 May 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.

Sign in to comment.

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!