MATLAB Answers

C Zeng

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

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.





No products are associated with this question.

1 Answer

Answer by Azzi Abdelmalek
on 12 Mar 2013
 Accepted answer





But I don't think it will be much faster

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.

C Zeng
on 12 Mar 2013

Oh, OK, Walter. But theoretically, it can be faster.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!