matlab 这个函数哪里出错了fuction [ou1,ou2]=xuhaoyi(in1,in2,in3)%mytest is used to do the question% Purpose:If input1 is between 60 and 70 and input2 is between 20 and 25 and input3 is above 90,% then output1 is true and output 2 is 1.% If in

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/16 19:01:49
matlab 这个函数哪里出错了fuction [ou1,ou2]=xuhaoyi(in1,in2,in3)%mytest is used to do the question% Purpose:If input1 is between 60 and 70 and input2 is between 20 and 25 and input3 is above 90,% then output1 is true and output 2 is 1.% If in
xS=O0+hPJ[&C`Clb hG3-PT"[޻b |yhtO/7U_N$ v]±: S滔I/8B@r(qJuUq2P)'"e+= LO'8 y asm 2Vhض17>оJ7]+ O{S]d=xpf. >'̔IELJ+6L|k$$ ؇E81TQ &A=9} zWi3>L,3e'7 oYiײWot:wVWT/j\ϧbi)VL

matlab 这个函数哪里出错了fuction [ou1,ou2]=xuhaoyi(in1,in2,in3)%mytest is used to do the question% Purpose:If input1 is between 60 and 70 and input2 is between 20 and 25 and input3 is above 90,% then output1 is true and output 2 is 1.% If in
matlab 这个函数哪里出错了
fuction [ou1,ou2]=xuhaoyi(in1,in2,in3)
%mytest is used to do the question
% Purpose:If input1 is between 60 and 70 and input2 is between 20 and 25 and input3 is above 90,% then output1 is true and output 2 is 1.
% If input1 is between 65 and 75,and input2 is between 25 and 30 and input3 is above 80,then % output1 is true and output 2 is 0.
% Otherwise input1 is false and output2 is 0.
% Define the variables:
% msg -- error message
%
% Do the question
if in1=60 & in2>=20 && in290
ou1=1; ou2=1;
elseif in1=65 & in2>=25 && in280
ou1=1; ou2=0;
else
ou1=0; ou2=0
end
这个自定义的函数哪里出现了错误?

matlab 这个函数哪里出错了fuction [ou1,ou2]=xuhaoyi(in1,in2,in3)%mytest is used to do the question% Purpose:If input1 is between 60 and 70 and input2 is between 20 and 25 and input3 is above 90,% then output1 is true and output 2 is 1.% If in
if in1=60 && in2>=20 && in290
ou1=1; ou2=1;
elseif in1=65 && in2>=25 && in280
ou1=1; ou2=0;
else
ou1=0; ou2=0
end