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!