필터 지우기
필터 지우기

searching in an mfile

조회 수: 4 (최근 30일)
noa
noa 2013년 7월 24일
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
Cedric
Cedric 2013년 7월 24일
편집: Cedric 2013년 7월 24일
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)?

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 7월 24일
편집: Azzi Abdelmalek 2013년 7월 24일
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
noa
noa 2013년 7월 24일
i have matlab 2009a
and i want the process to be automatic
Azzi Abdelmalek
Azzi Abdelmalek 2013년 7월 24일
You can read all your m-file with fgetl function and use regexp function to locate u_vec(9)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by