&& trouble !
显示 更早的评论
if i make an array of delta(i) such that delta(i)=atan2(x,z) then the code: if ((delta(i)<0) && (delta>=pi)) delta(i)=2*pi+delta(i);
gives error: operands && operators must be convertible to logical scalar values
help me out if u can !
1 个评论
Jan
2011-9-20
It is impossible that delta(i) is smaller than zeros *and* greater equal Pi at the same time. Therefore the IF condition is FALSE ever. In addition the reply of ATAN2 is smaller equal Pi ever.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!