how can make for-loop in an if-end command for 'and(&) ' all arrays?
3 次查看(过去 30 天)
显示 更早的评论
how can make for-loop and if-end command for all array of a matrix to be less than 2 value?(how can make for-loop in an if-end command for 'and(&)'?) foe example:
%matrix=defined matrix
how making loop for this:
if matrix(1,1)<1 && matrix(2,1)<1&& matrix(3,1)<1&& matrix(4,1)<1&& ... matrix(end,1)<1
a=2
end
0 个评论
采纳的回答
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!