Help for data in txt file
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ferial Assmani
le 24 Mar 2016
Modifié(e) : Stephen23
le 26 Mar 2016
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 24 Mar 2016
Modifié(e) : Azzi Abdelmalek
le 24 Mar 2016
use unique function
b=[2;3;3;1]
a=unique(b)
3 commentaires
Azzi Abdelmalek
le 26 Mar 2016
yes, but if you want to use unique function without sorting
c=unique(b,'stable')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!