How to rearrange matrix and delet similar value ?
이전 댓글 표시
Hi guys
I have matrix and should rearrange matrix and delete similar value as next:
the origin matrix
0 0 10 150 150 0 125 150 0 10 125 150
0 0 80 0 0 70 80 55 70 80 80 55
what I need
0 0 10 125 150 150
0 70 80 80 55 0
What's program i need hould do:
- when values of column are similar then delete column that repeated
- rearrange column according first line
채택된 답변
추가 답변 (1개)
Mech
2014년 6월 16일
0 개 추천
댓글 수: 5
José-Luis
2014년 6월 16일
Please try reading the documentation.
doc unique
Mech
2014년 6월 16일
José-Luis
2014년 6월 16일
Type
doc unique
in the command editor and press "Enter"
Mech
2014년 6월 16일
José-Luis
2014년 6월 16일
That's not a very useful statement, I'm afraid. You could always google, as all the documentation is online.
카테고리
도움말 센터 및 File Exchange에서 Sparse Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!