Compiled application can't dock figures

4 ビュー (過去 30 日間)
michael livshitz
michael livshitz 2018 年 1 月 23 日
回答済み: Yair Altman 2022 年 10 月 27 日
Hello, I am using Matlab 2016b. My application uses docking windows feature. I create and dock multiple figures, and everything works when run from the script. However, when I compile my application using deploytool, the figures aren't docked. Is this a known limitation?

回答 (2 件)

Jordy Jose
Jordy Jose 2018 年 1 月 31 日
Hi Michael,
Unfortunately, MATLAB does not provide a functionality to dock figures in compiled applications. The recommended workflow in this kind of situations is to create a figure with tabs using the 'uitabgroup' and 'uitab' functions.

Yair Altman
Yair Altman 2022 年 10 月 27 日
The ability to dock figures in deployed programs is available, but is intentionally blocked by the Matlab compiler. I think this limitation is regrettable, unnecessary, and completely self-defeating for MathWorks, but over the past decade I was not successful in convincing them to the contrary.
Luckily, there are several technical workarounds that do not require extensive recoding using tabs, which is the official "solution" offered for the limitation.
I will not post any workarounds publicly, but anyone with a legitimate business need to dock figures in compiled (deployed) applications is welcome to email me (altmany at gmail).

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by