Is there a command of "not less than or equal to " to vectors?

76 views (last 30 days)
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.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 12 Mar 2013
all(a<=b)
  7 Comments
C Zeng
C Zeng on 12 Mar 2013
Oh, OK, Walter. But theoretically, it can be faster.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!