?? 07-06.txt
字號:
function ifboth(a,b)
if a > 0 && b > 0
disp('a and b are both larger than 0.');
elseif a > 0 && b < 0
disp('a is larger than 0, and b is smaller than 0.');
elseif a < 0 && b > 0
disp('a is smaller than 0,and b is larger than 0.');
else
disp('a and b are both smaller than or equal to 0.');
end
disp('Done');
>> a=44;b=58;
>> ifboth(a,b)
>> a=44;b=-58;
>> ifboth(a,b)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -