Is there a command of "not less than or equal to " to vectors?
조회 수: 17 (최근 30일)
이전 댓글 표시
Hi, want to know if there is a command can compare if two vectors a is not <=b? Now I use while sum(le(a,b))~=N while N is the size of vector. However it is very inconvenient.
Thanks.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 3월 12일
all(a<=b)
댓글 수: 7
Walter Roberson
2013년 3월 12일
No there isn't.
If I recall correctly, someone did submit a MEX routine to do vector comparisons, but unfortunately I cannot seem to locate it at the moment.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!