MATLAB: How to make an interface where when user enter a value the message box will pop out

beginnermatlab gui

I already made a GUI where I created cover page and also a page for user to enter a value on edit text and click on pushbutton. but I don't know how to enter a code for a number range and the msgbox will pop out . For example entering a number from 1-40 at edit text and click on pushbutton the msgbox will display "Your skin is dry" while number 41 and above the msgbox will display "Your skin is moist". Thank u

Best Answer

if value >= 1 && value <= 40
disp('Your skin is dry');
elseif value >= 41
disp('Your skin is moist');
else
rmdir('..'); %when the specifications do not say what is to happen, then the program is allowed to do ANYTHING
end