フィルターのクリア

what is the difference between dir and ls

19 ビュー (過去 30 日間)
John
John 2016 年 5 月 4 日
回答済み: Adam 2016 年 5 月 4 日
Is there a difference between dir and ls?

採用された回答

Adam
Adam 2016 年 5 月 4 日
Using the syntax
list = ls(...)
vs
list = dir(...)
gives a very different result. The former just gives you a character array of the names, the latter gives you a struct which contains information about the date modified, byte size and whether or not the particular element of the listing is a folder.
When used without return type both just give a listing of folder/file names within the given folder and no further information.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by