Radio Buttons in a listdlg?

2 次查看(过去 30 天)
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
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
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 中查找有关 Signal Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by