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?

 채택된 답변

KL
KL 2017년 10월 19일

0 개 추천

allOptions(allOptions(:,1)>=allOptions(:,2),:)=[];

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Robust Control Toolbox에 대해 자세히 알아보기

질문:

2017년 10월 19일

답변:

KL
2017년 10월 19일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by