Figure docking not working when an application is created using the MATLAB Compiler

10 ビュー (過去 30 日間)
Jeremy Popp
Jeremy Popp 2019 年 10 月 10 日
回答済み: Yair Altman 2022 年 10 月 27 日
I have created a GUI using guide that works the way I want it to when running in MATLAB. I now want to distribute it to others and am creating a "Standalone Application" using MATLAB Compiler. Everything seems to work correctly except the window docking. When I generate several figures I want them all docked so you can click on each labed tab for each figure. This works correctly when I run the application from MATlab, but does not work correctly when I run a generated standalone application. The figures each come up in their own window.
I have tried the following:
set(0,'DefaultFigureWindowStyle','docked');
figure('Name',fig1,'NumberTitle','off','WindowStyle','docked');

回答 (1 件)

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 ExchangeMATLAB Compiler についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by