Replicate programmatically Tab inside a TabGroup

17 ビュー (過去 30 日間)
FILIPPO BARILLI
FILIPPO BARILLI 2020 年 5 月 3 日
コメント済み: Adam Danz 2021 年 4 月 20 日
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 日
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 件のコメント
Aravind Krishna
Aravind Krishna 2021 年 4 月 19 日
Hi im curious how you can implement this in the app designer?
Or my question unrelated to this?
Adam Danz
Adam Danz 2021 年 4 月 20 日
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 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by