Hi, what is MATLAB equivalent to ls -l?

댓글 수: 1

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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

제품

릴리스

R2019b

태그

질문:

2020년 1월 8일

댓글:

2020년 1월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by