Replicate programmatically Tab inside a TabGroup

17 visualizaciones (últimos 30 días)
FILIPPO BARILLI
FILIPPO BARILLI el 3 de Mayo de 2020
Comentada: Adam Danz el 20 de Abr. de 2021
I created a Tab inside a TabGroup for a Wind Turbine. Then I have 3 Wind Turbine and I would like to replicate programmatically that Tab three times (one for each Wind turbine).
I managed to create a new tab but not to replicate it. Do I have to declare in code also the components inside? Or I can "simply" copy and paste it?

Respuesta aceptada

Adam Danz
Adam Danz el 3 de Mayo de 2020
Editada: Adam Danz el 4 de Mayo de 2020
Use copyobj to copy a tab within the tabgroup.
% t is the handle to an existing tab
% g is the handle to the tab group
% t2 is the handle to the copied tab
t2 = copyobj(t, g);
  2 comentarios
Aravind Krishna
Aravind Krishna el 19 de Abr. de 2021
Hi im curious how you can implement this in the app designer?
Or my question unrelated to this?
Adam Danz
Adam Danz el 20 de Abr. de 2021
I forget when copyobj became available in uifigures/uiaxes used by app designer. If you're using the current release the same solution should work in the app, I believe. Have you tried it in the current release?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by