Matlab GUI popupmenu problem
7 views (last 30 days)
Geoff Hayes on 15 Mar 2022
@Huda M - the red text in your screen shot is the error message so it is telling you what is going wrong. It would be helpful to copy and paste the full error message to this question so that anyone can get an idea of what is happening. Looking at your code though (again, copying and pasting the code is more helpful than a screen shot)
set(handles.output, 'string', 1)
it seems that you are setting the output text field string property with an integer. Try doiing
set(handles.output, 'string', '1')
instead where you set the string property with a string. Please do that for each of the four conditions.