MATLAB Answers

0

Why is it no longer possible to dock figures generated by a compiled application created with MATLAB Compiler 4.8 (R2008a)?

My standalone application generates multiple plots and I would like to dock all the figures generated into a single window.
It was possible to group figures using the 'WindowStyle' property, compiling my application in MATLAB R2006b to R2007b:
figure('WindowStyle','docked');
However since MATLAB R2008a this does not work anymore, since the compiled application produces a new figure window for every figure.

Products


Release

R2008a

1 Answer

Answer by MathWorks Support Team on 1 Jun 2010
 Accepted Answer

The ability to do dock figures is not available in applications compiled with MATLAB Compiler.
As a workaround for this issue, you can come up with a "Figures" window which can contain multiple docked figure windows with the ability of tabbing between figures and then, compile such application.
For more information, refer the attached example.

  1 Comment

If you are interested in the approach described by this answer, I would strongly recommend using the documented uitabgroup/uitab objects.

Sign in to comment.