RUN can't find subroutine matlab script

2 ビュー (過去 30 日間)
rober co
rober co 2019 年 6 月 5 日
回答済み: rober co 2019 年 6 月 5 日
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 Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by