uicheckboxでチェックボックスの作成

2 visualizzazioni (ultimi 30 giorni)
yuuji yamada
yuuji yamada il 15 Ott 2018
Commentato: yuuji yamada il 16 Ott 2018
matlab2013bを使用し、matlab gui にてツールを作っています。 チェックボックスをプログラムで作成するにはどうすればよいでしょうか。 調べたところuicheckboxというメソッドにてプログラムでチェックボックスを作成できるようなのですが matlab2013bにはこのメソッドがないようです。「help uicheckbox」とコマンドを打ってもhelpには 出てきませんでした。

Risposta accettata

Kazuya
Kazuya il 15 Ott 2018
Modificato: Kazuya il 15 Ott 2018
uicheckbox は R2016a からですね。 https://jp.mathworks.com/help/matlab/ref/uicheckbox.html
"App Designer または関数 uifigure で作成した Figure でのみ使用します。GUIDE または関数 figure を使用する場合は、uicontrol を使用してチェック ボックスを作成します。"
とあるように uicontrol がよいかと。
hcb = uicontrol('Style','checkbox','String','テスト')
  1 Commento
yuuji yamada
yuuji yamada il 16 Ott 2018
御回答ありがとうございます。解決しました。

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!