Asked by C Zeng
on 12 Mar 2013

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.

*No products are associated with this question.*

Answer by Azzi Abdelmalek
on 12 Mar 2013

Accepted answer

all(a<=b)

Show 4 older comments

Walter Roberson
on 12 Mar 2013

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.

Opportunities for recent engineering grads.

## 0 Comments