RUN can't find subroutine matlab script

2 views (last 30 days)
rober co
rober co on 5 Jun 2019
Answered: rober co on 5 Jun 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

Answers (1)

rober co
rober co on 5 Jun 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

Categories

Find more on Startup and Shutdown 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!