参考代码:
clear;clc
a = 6;
c = 11;
d = 10;
if a>3 & a<=5
b=1;
elseif a>5 & a<=9
if c == 10 & d == 10
b = 2;
else
b = 1000;
end
elseif a>9
b = 3;
end
b
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!