Using mlapp files as components of a larger UI

조회 수: 9 (최근 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 CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by