MATLAB hangs on function call from Windows system prompt
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!