Remove rows in a matrix not having same element
2 次查看(过去 30 天)
显示 更早的评论
I am having a matrix
A =[1 2 3;
1 2 6;
1 2 7;
1 3 6;
1 3 7;
1 6 7;
2 3 6;
2 3 7;
2 6 7;
3 6 7]
I need the rows having element 2 means final matrix should be
A =[1 2 3;
1 2 6;
1 2 7;
2 3 6;
2 3 7;
2 6 7]
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!