MATLAB equivalent to ls -l

4 次查看(过去 30 天)
Hi, what is MATLAB equivalent to ls -l?
  1 个评论
Walter Roberson
Walter Roberson 2020-1-8
On Mac and Linux, MATLAB passes the parameters to the ls command, so
ls -l
at the MATLAB prompt will show long information.

请先登录,再进行评论。

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by