MATLAB Answers

Replicate programmatically Tab inside a TabGroup

2 views (last 30 days)
FILIPPO BARILLI
FILIPPO BARILLI on 3 May 2020
Edited: Adam Danz on 4 May 2020
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?

  0 Comments

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 3 May 2020
Edited: Adam Danz on 4 May 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);

  0 Comments

Sign in to comment.

More Answers (0)

Products


Release

R2020a

Translated by