Using mlapp files as components of a larger UI
7 views (last 30 days)
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.
Sivani Pentapati on 2 Nov 2021
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.