find specific parameter in multiple m-files

81 ビュー (過去 30 日間)
yonatan gerufi
yonatan gerufi 2014 年 10 月 28 日
コメント済み: Avner Atias 2020 年 5 月 25 日
Hi all,
I want to find the location of specific parameter in multiple m-files.
e.g i have 50 matlab files (*.m), and i want to find the location of " sigma " parameter.
now, i can open each file and do find (with ctrl+f) , but i looking for a faster way.
regards, Yoni.
  3 件のコメント
yonatan gerufi
yonatan gerufi 2014 年 10 月 28 日
編集済み: yonatan gerufi 2014 年 10 月 28 日
thank you Per Isakson,
i edited the question. hopefully now it's understandable.
per isakson
per isakson 2014 年 10 月 28 日
I replace "mat files" by "m-files" in the question. mat-file is a different type of file (store data).

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

採用された回答

Abhiram Bhanuprakash
Abhiram Bhanuprakash 2014 年 10 月 28 日
編集済み: Abhiram Bhanuprakash 2014 年 10 月 28 日
Hi Yonatan,
Ctrl+Shift+f would open a 'Find Files' window. In that, you can search the parameter, in this case, 'sigma' in the 'Find files containing text' field. It would also give you the line numbers where that string appears in the files.
You can also open the 'Find Files' window by navigating to 'Find Files' under the home tab, or the menu Edit -> Find files depending on which version of MATLAB you are using.
Hope this answers your query.
Cheers!
Abhiram.
  3 件のコメント
Abhiram Bhanuprakash
Abhiram Bhanuprakash 2014 年 10 月 28 日
Thank you Yonatan!
Avner Atias
Avner Atias 2020 年 5 月 25 日
Works like a charm
Thanks

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

その他の回答 (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