RUN can't find subroutine matlab script

3 vues (au cours des 30 derniers jours)
rober co
rober co le 5 Juin 2019
I generated an executible file from using mcc. When I ran the .exe file, it couldn't find the subroutine that is called by run. I got an error message saying "Error using run. RUN can't execute the file temp.exe. RUN requires a valid Matlab script"
Any help would be appreciated

Réponses (1)

rober co
rober co le 5 Juin 2019
After adding the full path of the subroutine, recompile the code, and ran the mainroutine.exe file, I still got the following errors. I didn't get any error by runing the mainroutine.m through Matlab.
Error using run (line 56)
subroutine.m not found
Error in mainroutine>file_open_Callback (line 546)
Error in gui_mainfcn (line 96)
Error in mainroutine (line 42)
Error in @(hObject, eventdata)mainroutine('file_open_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by