why do I get an error when I pressthe radio button in my GUI

1 view (last 30 days)

Answers (2)

Benjamin on 4 Dec 2021
One error you might get is that variable 'radiobutton1' is undefined. You should refer to it as 'handles.radiobutton1'.

VBBV on 4 Dec 2021
Edited: VBBV on 4 Dec 2021
if get(handles.radiobutton1,'Value') == 1
Matrix = ...your code
elseif get(handles.radiobutton2,'Value') == 1
Matrix = ...
Use handles to object and check

Community Treasure Hunt

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

Start Hunting!