Effacer les filtres
Effacer les filtres

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

17 vues (au cours des 30 derniers jours)
Reinhard Palaver
Reinhard Palaver le 31 Août 2016
Modifié(e) : Stephen23 le 1 Sep 2016
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 commentaires
Reinhard Palaver
Reinhard Palaver le 31 Août 2016
... see answer below!
Guillaume
Guillaume le 31 Août 2016
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.

Connectez-vous pour commenter.

Réponses (1)

Stephen23
Stephen23 le 31 Août 2016
Modifié(e) : Stephen23 le 31 Août 2016
MATLAB finds any string in any text files (not quite one button click):
  • Ribbon: "Home" tab -> "Find Files".
Have you tried using that ?
  3 commentaires
Stephen23
Stephen23 le 1 Sep 2016
Modifié(e) : Stephen23 le 1 Sep 2016
@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.
Reinhard Palaver
Reinhard Palaver le 1 Sep 2016
Modifié(e) : Reinhard Palaver le 1 Sep 2016
Thanks a lot!!! Mille Grazie!!! Gracias!!! Merci!!!

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by