PROGRAMMATIC GUI: How do i add toggle switch, lamp and panel or button group in programmatic GUI ?

I get the below error for uipanel when i define my figure as 'uifigure'. Here, 'uilamp' works
Error using uipanel
Functionality not supported with
figures created with the uifigure
function. For more information,
see Graphics Support in App
Designer.
I get the error when i define my figure as just 'figure', Here, 'uipanel' works
Error using uilamp (line 36)
Functionality not supported with
figures created with the figure
function. For more information,
see Graphics Support in App
Designer.

2 件のコメント

Hi,
Can you provide the code snippet of what you are trying to achieve?
What release are you using? The code below works in R2020b.
fig = uifigure;
p = uipanel(fig,'Position',[20 20 196 135]);
lmp = uilamp(fig);

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeUpdate figure-Based Apps についてさらに検索

質問済み:

2020 年 9 月 30 日

コメント済み:

Rik
2020 年 11 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by