can deployed application run the 'run' function?

조회 수: 11 (최근 30일)
ty z
ty z 2022년 1월 23일
댓글: Steven Lord 2024년 5월 9일
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
Walter Roberson
Walter Roberson 2022년 1월 23일
Have you investigated the MATLAB Grader service?
ty z
ty z 2022년 1월 24일
sorry i havent but i will do it, thank you

댓글을 달려면 로그인하십시오.

채택된 답변

Voss
Voss 2022년 1월 23일
Unfortunately, run() is not supported in deployed applications.
  댓글 수: 4
Voss
Voss 2024년 5월 9일
yourScript

instead of

run("yourScript.m")
Steven Lord
Steven Lord 2024년 5월 9일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by