RUN can't find subroutine matlab script

2 visualizzazioni (ultimi 30 giorni)
rober co
rober co il 5 Giu 2019
Risposto: rober co il 5 Giu 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

Risposte (1)

rober co
rober co il 5 Giu 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

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by