Clear Filters
Clear Filters

Why am I not able to execute my standalone application from MATLAB environment

2 views (last 30 days)
Hi,
I am trying to run a compiled standalone application using MCR 9.5 on my computer from the command line in MATLAB. The application runs perfectly outside of MATLAB; however, when trying to run it from the command line using 'system(executable)', I get the following error:
Undefined function or variable 'matlabrc'.
Undefined function or variable 'ctfroot'.
Error in checkRequiredMCRProducts (line 22)
Undefined function or variable 'ctfroot'. Opening log file:
The strange thing is that the code and everything worked perfectly until a forced restart of MATLAB. I have tried deleting the mcrCache9.5 folder from AppData, but this did not resolve the issue.
Any ideas how I could fix the problem and run the executable from the command window?
The code I use to start the application is the following:
code_source = 'compiled';
release_number = '1.46-2'; % only works for compiled code.
release_dir = 'pwd';
executable = [release_dir,'\APP',release_number,'.exe '];
system(executable)

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!