Searching files

36 ビュー (過去 30 日間)
bikal shrestha
bikal shrestha 2012 年 4 月 22 日
Is it possible to search the file in the matlab using matlab codes? Plz respond...
  1 件のコメント
Jan
Jan 2012 年 4 月 22 日
Please add the necessary details: Are you looking for a file name, or a specific contents of a file?

サインインしてコメントする。

採用された回答

Junaid
Junaid 2012 年 4 月 22 日
yes it is possible to search files.
you can write code as you like. For example I want to search file 'test.txt' in current folder c:/matlab/ then I can do like this.
files = dir('c:/matlab/*.txt');
now files contains all files with txt format. now you can loop for your file.
there are many other ways. This is just example to show you.
You can also try function exist.

その他の回答 (1 件)

bikal shrestha
bikal shrestha 2012 年 5 月 1 日
thanks a lot it was really helpful... now i can search the file in any location ....

カテゴリ

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