Extracting rows based based on criteria from two columns
3 次查看(过去 30 天)
显示 更早的评论
A= [1 1 4;
1 2 6;
1 3 9;
1 4 10;
2 1 12;
2 2 15;
2 3 20;
2 4 45]
I want to extract rows from the matrix as follows: For each consecutive number in the first column extract rows using increment of 2 in the second column. The result will be:
A= [1 2 6;
1 4 10;
2 2 15;
2 4 45]
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genomics and Next Generation Sequencing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!