Radio Buttons in a listdlg?

조회 수: 4 (최근 30일)
Edmund Paul Malinowski
Edmund Paul Malinowski 2015년 11월 16일
댓글: Edmund Paul Malinowski 2015년 11월 16일
Hey all,
Is it possible to add radio buttons to a listdlg? I've read lots on how to create button groups but they all seem to be for figures and not inputdlg or listdlg.
Ideally for my assignment, i have user the select which note (C-B) is to be filtered but i want 2 radio buttons so that they can choose to either filter out that note or filter out everything but that note (i'll create bandpass and bandreject filters to do this)..
Thanks,
Paul..

답변 (1개)

TastyPastry
TastyPastry 2015년 11월 16일
From how I understand the predefined user input GUIs in Matlab, it's difficult, if not impossible to change them. However, they're all pretty easy to write yourself either using GUIDE or just coding it from a blank document.
Why does listdlg not work for you? It allows you to select exclusive options just like radio buttons.
  댓글 수: 2
Edmund Paul Malinowski
Edmund Paul Malinowski 2015년 11월 16일
Hey Tasty,
So far my listdlg works. Sorry i hadn't given you the background on it. I have a list with the 7 white keys (C-B) in it and when the user picks a note letter, it plays a wav file which the program filters everything out but the chosen note. What i'd like to do is have the option to filter the opposite (so plays everything BUT that note).
I wasn't sure of the code for adding radio buttons to my listdlg. Is it basically the same as the code for the list except for changing some of the parameters of course?
Edmund Paul Malinowski
Edmund Paul Malinowski 2015년 11월 16일
I'll look into GUIDE though, so thanks for that.
We only had limited time for this assignment but i'm trying to do extra credit stuff and thought it may be a quick and easy one haha

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by