Radio Buttons in a listdlg?

3 visualizzazioni (ultimi 30 giorni)
Edmund Paul Malinowski
Edmund Paul Malinowski il 16 Nov 2015
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)..

Risposte (1)

TastyPastry il 16 Nov 2015
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 Commenti
Edmund Paul Malinowski
Edmund Paul Malinowski il 16 Nov 2015
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 il 16 Nov 2015
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

Accedi per commentare.


Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by