![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175033/image.png)
MATLAB Workspace and functions
1 回表示 (過去 30 日間)
古いコメントを表示
I understand that the workspace window shows me only the variables of the main function of my program. Once I step into a function, the workspace does NOT show me local variables of the functions, but keeps the display of the variables of the main function. However, in other IDEs (Visual Studio, Eclipse), the Workspace Window shows me the variables of the function, in which the program runs at every moment. I want to ask how I can see local variables in Workspace also in MATLAB? It can really help me debugging my code.
0 件のコメント
採用された回答
the cyclist
2014 年 5 月 31 日
In the Editor tab (of the Editor window) of the interface, there is a pulldown menu labeled "Function Call Stack" that will allow you to choose which function workspace you are viewing:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175033/image.png)
2 件のコメント
the cyclist
2014 年 5 月 31 日
編集済み: the cyclist
2014 年 5 月 31 日
Here is a wider image that shows the whole Editor tab at the top of the Editor window:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/179005/image.png)
You may need to click that little arrow on the far right to open the tab.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File 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!