find specific parameter in multiple m-files

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 commentaires

per isakson
per isakson le 28 Oct 2014
Modifié(e) : per isakson le 28 Oct 2014
"mat files" &nbsp are that Matlabs mat-files?
"sigma" looks like string. However, &nbsp find &nbsp is not the best wat to search for strings.
Provide a small example!
yonatan gerufi
yonatan gerufi le 28 Oct 2014
Modifié(e) : yonatan gerufi le 28 Oct 2014
thank you Per Isakson,
i edited the question. hopefully now it's understandable.
per isakson
per isakson le 28 Oct 2014
I replace "mat files" by "m-files" in the question. mat-file is a different type of file (store data).

Connectez-vous pour commenter.

 Réponse acceptée

Abhiram Bhanuprakash
Abhiram Bhanuprakash le 28 Oct 2014
Modifié(e) : Abhiram Bhanuprakash le 28 Oct 2014

8 votes

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 commentaires

yonatan gerufi
yonatan gerufi le 28 Oct 2014
thanks!!
exactly what i was looking for.
Thank you Yonatan!
Avner Atias
Avner Atias le 25 Mai 2020
Works like a charm
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by