Is there a command of "not less than or equal to " to vectors?
16 次查看(过去 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!