Replicate programmatically Tab inside a TabGroup
12 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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
2021-4-19
Hi im curious how you can implement this in the app designer?
Or my question unrelated to this?
I was looking for an answer for this : create copies of the same gui under different tabs - MATLAB Answers - MATLAB Central (mathworks.com)
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 Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!