Which function should I use here to group my matrix?
이전 댓글 표시
So let's say I have this matrix in Matlab.
A = [1 0 0;
2 0 0;
1.1 0 0;
2.1 0 0;
1.2 0 0;
2.2 0 0]
The thing is in my case, the values of row 1,3 and 5 are same and values of row 2,4 and 6 are same. And I want to write my new matrix like this.
B = [1 0 0;
1.1 0 0;
1.2 0 0;
2 0 0;
2.1 0 0;
2.2 0 0]
Someone can help me, what function should I use here. I beleive this is something related to group function, but didnt findout able to anything which I can use.
Appreciate your help,
Thank you :).
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!