I am trying to find a variable which appears in the workspace and is used as an input to a function in the code. How can I find how and where is it defined?

9 次查看(过去 30 天)
I have got a code in which I cannot find where a variable is defined. It is used as an input in one of the functions but I cannot find where is it defined in the code.

回答(1 个)

Star Strider
Star Strider 2018-11-14
If you are using the MATLAB Editor, in the ‘NAVIGATE’ tab in the top toolstrip, click on ‘Find’. Go to the beginning of your script, enter the name of the variable, and go from there.

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by