I am developing an app using Matlab app designer. I am pretty new to Matlab app designing so i request you to please help me. The app is a questionnaire where I have two questions and the user has to select the answers for each question. Each question is a button group and the answers are radio buttons which the user has select one of them for each question. Based on the answers selected for each question, final result is displayed.
if (buttongroup1,radiobutton1) and (buttongroup2,radiobutton1) is selected
else if (buttongroup1,radiobutton1) and (buttongroup2,radiobutton2) is selected
the approach i adopted is store the result of each selection (as number) in different variables and use them in if statements. When i run the code i am getting the following error "Operands to the and && operators must be convertible to logical scalar values"
please suggest an appropriate solution for this issue.
below is the part of the code i wrote for your reference.
properties (Access = private) hum % Description gen % Description end
methods (Access = private)
if all(app.hum=='1' && app.gen=='1')
elseif (app.hum=='1' && app.gen=='2')
function HumanButtonGroupSelectionChanged(app, event)
function GenderButtonGroupSelectionChanged(app, event)