MATLAB equivalent to ls -l
4 次查看(过去 30 天)
显示 更早的评论
Hi, what is MATLAB equivalent to ls -l?
1 个评论
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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!