make matlab read the files in order?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am using a code to read and calculate mass center. but the code read file with this oder:
Now reading C:\Users\shape_01.dat
Now reading C:\Users\shape_010.dat
Now reading C:\Users\shape_0100.dat
Now reading C:\Users\hape_0101.dat
so i get wrong orders for my output results.
because i need matlab to process my file in normal order: 1 2 3 4 4 5 ...
please is there any suggestion how to solve that?
2 commentaires
Stephen23
le 4 Nov 2020
@RBC MAN: are those binary numbers?
Or are they decimal numbers from which you happen to have only shown numbers using the digits 0 and 1 ?
Réponse acceptée
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Low-Level File I/O 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!