我做了一个matlab gui,当用户在编辑文本中输入值并单击按钮时,msgbox将弹出。我试过这个编码
`if value >= 1 && value <= 40
edit1String = sprintf('Your score is %f.\nYour skin is dry', value);
elseif value >= 41
edit1String = sprintf('Your score is %f.\nYour skin is moist', value);
else
rmdir('..'); %when the specifications do not say what is to happen, then the program is allowed to do ANYTHING
end`
并将其置于编辑文本下但没有发生任何事情?我试过把它放在按钮下,也没有任何事情发生。任何人都有任何想法?