Filter löschen
Filter löschen

MATLAB equivalent to ls -l

6 Ansichten (letzte 30 Tage)
yonatan s
yonatan s am 8 Jan. 2020
Kommentiert: Walter Roberson am 8 Jan. 2020
Hi, what is MATLAB equivalent to ls -l?
  1 Kommentar
Walter Roberson
Walter Roberson am 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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

John D'Errico
John D'Errico am 8 Jan. 2020
Bearbeitet: John D'Errico am 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 Kommentare
yonatan s
yonatan s am 8 Jan. 2020
I was looking for the last one. thanks
Walter Roberson
Walter Roberson am 8 Jan. 2020
! ls -l
is shorter. But you do not even need to use the ! on Mac.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by