解决。
数字按钮= max(大小(app.orientationUnique));
为b = 1:数字按钮
posidx = b * (30 + app.TheHuntGUI.Position (1));
app.orientationButtons (b) = uibutton (app.TheHuntGUI,“推”);
集(app.orientationButtons (b),“字体名”,“天线”);
集(app.orientationButtons (b),“字形大小”,18);
集(app.orientationButtons (b),“FontWeight”,“大胆”);
集(app.orientationButtons (b),“位置”[posidx 500 120 40]);
集(app.orientationButtons (b),“文本”,app.orientationUnique {b});
集(app.orientationButtons (b),“标签”,app.orientationUnique {b});
集(app.orientationButtons (b),“ButtonPushedFcn”createCallbackFcn(应用,@orientationButtonPushed真的));
结束