MATLAB equivalent to ls -l
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
yonatan s
le 8 Jan 2020
Commenté : Walter Roberson
le 8 Jan 2020
Hi, what is MATLAB equivalent to ls -l?
1 commentaire
Walter Roberson
le 8 Jan 2020
On Mac and Linux, MATLAB passes the parameters to the ls command, so
ls -l
at the MATLAB prompt will show long information.
Réponse acceptée
John D'Errico
le 8 Jan 2020
Modifié(e) : John D'Errico
le 8 Jan 2020
It depends on what you want from it. What exactly are you looking for?
D = dir
MAY give you much of what you may want, if you return
However, if you really, alsolutely need to see the output of ls -l, then just do
system('ls -l')
So there is no need for an equivalent thereof, just execute the system call itself.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown 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!