[求助]逻辑运算出错
f(u)=((u(2)<(three2two-0.06))&&u(1)&&u(3))||((u(2)>=three2two)&&(u(2)<(two2one-0.04))&&u(1)&&u(4))||((u(2)>=two2one)&&u(1))<BR>其中: u=;three2two=0.4;two2one=0.3;<BR>运行的时候提示: Subscript indices must either be real positive integers or logicals.<BR>但是我分开运行((u(2)<(three2two-0.06))&&u(1)&&u(3))||((u(2)>=three2two)&&(u(2)<(two2one-0.04))&&u(1)&&u(4))以及((u(2)>=two2one)&&u(1))都没有问题的呀.<BR>帮我看看什么问题.<BR>谢谢<BR>回复:(feichang61)[求助]逻辑运算出错
逻辑运算没有问题,问题出在f(u)上,如果你要用u作为下标的话,u必须是正整数 谢谢教授
页:
[1]