MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 初学matlab 编写气温判别 (https://www.labfans.com/bbs/showthread.php?t=21287)

符双才 2019-03-06 16:47

初学matlab 编写气温判别
 
[FONT="楷体"][SIZE="5"][/SIZE][/FONT]
%本程序用于判断天气情况;

b = input{'请输入温度'};
if b>30
disp('hot');
end
if (10<b)&&(b<30)
disp('warm');
end
if b<10
disp('cold');
end
在是运行时一直出错


所有时间均为北京时间。现在的时间是 05:27

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