Help for data in txt file
1 次查看(过去 30 天)
显示 更早的评论
Hy all, i have a txt file in which i stock some integers in brute manner, i need to create a copy of this file but i stock my integer in decrase order with no repitition, forme example: A.txt
2
3
3
1
B.txt
1
2
3
Please healpe my
0 个评论
采纳的回答
Azzi Abdelmalek
2016-3-24
编辑:Azzi Abdelmalek
2016-3-24
use unique function
b=[2;3;3;1]
a=unique(b)
3 个评论
Azzi Abdelmalek
2016-3-26
yes, but if you want to use unique function without sorting
c=unique(b,'stable')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!