Code browsing on MATLAB

5 ビュー (過去 30 日間)
Sébastien Ruiz
Sébastien Ruiz 2022 年 7 月 4 日
コメント済み: Walter Roberson 2022 年 7 月 5 日
How can I browse MATLAB code, like many IDEs exist to do so for other languages?
Especially to find among the files of a project the occurences of a fonction, of a variable, the declaration, etc. More than a simple find among the files.

回答 (3 件)

Siraj
Siraj 2022 年 7 月 4 日
編集済み: Siraj 2022 年 7 月 4 日
Hii!
It is my undrestanding that you want to find code for a function, as they appear in your script, there is a very easy way in matlab to do this.
  1. Simply right click on the function name and you will see the following menu.
  2. You can click on Open "function name" and can easily see its path and its source code.
  3. For variables you can simply left click on its name and then all the occurences of that variable will get highlighted making it easy to navigate.
Hope it helps.

Image Analyst
Image Analyst 2022 年 7 月 4 日
Type control-shift-F to bring up a search utility that will let you search multiple files and folders for a pattern.

Sébastien Ruiz
Sébastien Ruiz 2022 年 7 月 5 日
Thank you for the answers but It didn't bring help on my need.
With right click on a function I have:
With left click on a variable there is nothing appearing.
control-shift-F corresponds to find in files but it is only a research on the pattern (worse, I didn't find the possibility to search on the whole word only).
In the meantime I can have a few help with a tool dedicated for C code but does not handle MATLAB code properly.

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by