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!