How can I create graphics objects after launching MATLAB without a full desktop from the command line in MATLAB 8.1 (R2013a)?

Prior to MATLAB 8.1 (R2013a), I was able to launch MATLAB from my Linux terminal with the "-nojvm" option as follows:
matlab -nojvm
and then create graphics objects in MATLAB, such as a figure window, as follows:
figure
However, now in MATLAB R2013a, I receive the following error message:
Error using figure
This functionality is no longer supported under the -nojvm startup option. For more information, see "Changes to -nojvm Startup Option" in the MATLAB Release Notes. To view the release note in your system browser, run web('<http://www.mathworks.com/help/matlab/release-notes.html#btsurqv-6'>, '-browser').
How can I launch MATLAB without the MATLAB desktop interface and still be able to use graphics objects?

 Accepted Answer

This can be accomplished by using the "-nodesktop" option when launching MATLAB, as in:
matlab -nodesktop
Now, the MATLAB desktop does not open, but the JVM software has been started, and graphics commands will work as usual.
When launching MATLAB with the "-nojvm" option, the JVM software does not start. Prior to MATLAB R2013a, the graphics objects that are generated in this session are not Java objects; rather, they are native objects. Beginning in MATLAB R2013a, this is no longer supported.

More Answers (0)

Categories

Products

Release

R2013a

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!