MATLAB hangs on function call from Windows system prompt
Show older comments
In R2017b, I want to verify installation of a toolbox with installedAddons, and control the toolbox using the enableAddon and disableAddon functions.
These seem to work well from the matlab command line, but when I try to pass them as part of a command line call from outside matlab, matlab hangs.
From a Windows system prompt , this code should open matlab, show me the path, then spit out a table of installed addons:
c:\>matlab -r "path; matlab.addons.installedAddons"
However, matlab opens, prints the path, and then just hangs: it never displays the installed addons.
I've found this behavior for all of these functions: enableAddon disableAddon installedAddon isAddonEnabled; incidentally, they are new for R2017b.
- Does this work, or hang, for you?
- Have you encountered/worked around this problem with other functions?
Yes: I've looked for similar issues; found this issue. But the "resolution" there (MATLAB processes the commands as part of its initialization) is not helpful, because the command never gets fully processed and never prints out the installed apps table. The same issue happens with the enable/disable commands. Since my plan is to to verify/manage the addons as part of a build script, I can't be getting stuck at this step or the build won't happen.
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!