Using mlapp files as components of a larger UI

5 ビュー (過去 30 日間)
Alaster Meehan
Alaster Meehan 2021 年 7 月 26 日
回答済み: Sivani Pentapati 2021 年 11 月 2 日
I have a old matlab UI created programetically using the old "figure" functionality. It has multiple tabs all very crowded. It is getting to the point where I need to update this UI to the new 'uifigure' functionality. I would like to do this using Appdesigner as it generates much nicer code than GUIDE.
Is it possible to split a .mlapp app over several files? Having everything in 1 .mlapp file would be unmanagable and I would not be able to reuse some components such as custom data viewing panels with axes and customised controls.
Ideally I would like to programattically generate a uifigure and assign .mlapp files to certain pannels, tabs etc. I know this could be done by creating code in app designer and cutting and pasting it into a .m file, but this removes tha ability to edit controls using app designer at a later point, so maintainance would become more manual.
I would prefer to run files from the standard matlab command line as this gives me assess to improved debugging interface.
I am also awear that I can call custom diaglogue boses as seperate windows but am wanting these as a UI components not seperate windows.
https://au.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.html

回答 (1 件)

Sivani Pentapati
Sivani Pentapati 2021 年 11 月 2 日
Hi Alaster,
From my understanding you want to use mlapp files components as a part of larger UI. This can be done by creating custom components where you can add and customize the basic blocks to create a bigger component. They can be instantiated just like any other block. Please refer to the below link for more information on creation of custom UI components.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by