MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB数学相关] if语句的使用 (https://www.labfans.com/bbs/showthread.php?t=14381)

shilangfeng 2012-03-11 12:00

if语句的使用
 
x=input('请输入x值:');
if x>90&x<100
y=A;
elseif x>80&x<89
y=B;
elseif x>70&x<79
y=C;
elseif x>60&x<69
y=D;
else
y=E;
end
y


所有时间均为北京时间。现在的时间是 14:55

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.