Replicate programmatically Tab inside a TabGroup

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?

 채택된 답변

Adam Danz
Adam Danz 2020년 5월 3일
편집: Adam Danz 2020년 5월 4일

0 개 추천

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

Hi im curious how you can implement this in the app designer?
Or my question unrelated to this?
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?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 5월 3일

댓글:

2021년 4월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by