Filter löschen
Filter löschen

searching in an mfile

4 Ansichten (letzte 30 Tage)
noa
noa am 24 Jul. 2013
hi
my main file read 26 other mfile and it needs to search the value of u_vec(9).
how can i do this fast?
thanks
  1 Kommentar
Cedric
Cedric am 24 Jul. 2013
Bearbeitet: Cedric am 24 Jul. 2013
What do you mean by "read"? Are you talking about Mfiles( .m extension) or files with the .mat extension? If it's the first case, what does it mean to search for the value of u_vec(9).. is its content hardcoded, e.g. you have somewhere u_vec(9)=27 written and you want to find 27 without having to run the code (e.g. by text pattern matching)?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 24 Jul. 2013
Bearbeitet: Azzi Abdelmalek am 24 Jul. 2013
In your matlab editor there is an icone called find files, use it to find all the m files that contains u_vec(9)
  2 Kommentare
noa
noa am 24 Jul. 2013
i have matlab 2009a
and i want the process to be automatic
Azzi Abdelmalek
Azzi Abdelmalek am 24 Jul. 2013
You can read all your m-file with fgetl function and use regexp function to locate u_vec(9)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by