what is the difference between dir and ls
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is there a difference between dir and ls?
0 commentaires
Réponse acceptée
Adam
le 4 Mai 2016
Using the syntax
list = ls(...)
vs
list = dir(...)
gives a very different result. The former just gives you a character array of the names, the latter gives you a struct which contains information about the date modified, byte size and whether or not the particular element of the listing is a folder.
When used without return type both just give a listing of folder/file names within the given folder and no further information.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur File Operations 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!