Finding Where a Variable Is Defined

11 ビュー (過去 30 日間)
R Stephens
R Stephens 2016 年 1 月 5 日
コメント済み: R Stephens 2016 年 1 月 7 日
I am browsing Matlab source code from one of the toolboxes and I am trying to find where a variable is defined in the toolbox. Is there a quick way within the editor to tell the editor "jump to definition" as I can in other code editors? This would be useful for user generated code as well.
Thanks

採用された回答

Sean de Wolski
Sean de Wolski 2016 年 1 月 5 日
If you click on a variable in the editor, the right hand side will show gray lines for all instances of it. Click on the top one.
  1 件のコメント
R Stephens
R Stephens 2016 年 1 月 7 日
It would be nice if Mathworks would extend this functionality with a pop-up menu that showed the definition location if it is in another file. Otherwise the find option mentioned by Star Strider in combination with this current feature is required. Perhaps this already exists and I am missing something?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVariables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by