Hi, what is MATLAB equivalent to ls -l?

1 comentario

On Mac and Linux, MATLAB passes the parameters to the ls command, so
ls -l
at the MATLAB prompt will show long information.

Iniciar sesión para comentar.

 Respuesta aceptada

John D'Errico
John D'Errico el 8 de En. de 2020
Editada: John D'Errico el 8 de En. de 2020

0 votos

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 comentarios

yonatan s
yonatan s el 8 de En. de 2020
I was looking for the last one. thanks
Walter Roberson
Walter Roberson el 8 de En. de 2020
! ls -l
is shorter. But you do not even need to use the ! on Mac.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre File Operations en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Etiquetas

Preguntada:

el 8 de En. de 2020

Comentada:

el 8 de En. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by