MATLAB equivalent to ls -l

6 ビュー (過去 30 日間)
yonatan s
yonatan s 2020 年 1 月 8 日
コメント済み: Walter Roberson 2020 年 1 月 8 日
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 Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by