allOptions(allOptions(:,1)>=allOptions(:,2),:)=[];
How to remove rows that meet a condition?
1 次查看(过去 30 天)
显示 更早的评论
a = [1:19];
b = [2:20];
c = [1, 7, 14, 28, 42, 60, 90];
allOptions = combvec(a,b,c);
allOptions = allOptions';
This piece of script comes up with a new variable (2527 x 3).
How do I remove every row in which the value in column 1 is equal to or larger than the value in column 2?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!