Is there a command of "not less than or equal to " to vectors?
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 12 de Mzo. de 2013
all(a<=b)
7 comentarios
Walter Roberson
el 12 de Mzo. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!