Using mlapp files as components of a larger UI

6 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Develop 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