How I'm able to search for a variable in different functions and scripts?

12 次查看(过去 30 天)
I'm looking for a function or tool which help me to find the usage of a variable in different scripts or functions with just one click.
  4 个评论
Guillaume
Guillaume 2016-8-31
Well, all these tools will certainly find a string in several files. However, it is a far cry from finding "the usage of a variable in different scripts or functions". This would require some semantic analysis. Even then, I'm not sure that such a tool could be made for matlab (unlike other languages such as C), particularly for scripts since there isn't an absolute way to connect them.

请先登录,再进行评论。

回答(1 个)

Stephen23
Stephen23 2016-8-31
编辑:Stephen23 2016-8-31
MATLAB finds any string in any text files (not quite one button click):
  • Ribbon: "Home" tab -> "Find Files".
Have you tried using that ?
  3 个评论
Stephen23
Stephen23 2016-9-1
编辑:Stephen23 2016-9-1
@Reinhard Palaver: I am glad that it helped! If my answer helped you, please consider accepting it by clicking the accept button. That is an easy way for you to say "thank you" to us volunteers.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by