MATLAB equivalent to ls -l

조회 수: 5 (최근 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 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