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

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

 Accepted Answer

Kazuya
Kazuya on 15 Oct 2018
Edited: Kazuya on 15 Oct 2018

1 vote

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 Comment

yuuji yamada
yuuji yamada on 16 Oct 2018
御回答ありがとうございます。解決しました。

Sign in to comment.

More Answers (0)

Asked:

on 15 Oct 2018

Commented:

on 16 Oct 2018

Community Treasure Hunt

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

Start Hunting!