RUN can't find subroutine matlab script

2 次查看(过去 30 天)
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

回答(1 个)

rober co
rober co 2019-6-5
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

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by