MATLAB Workspace and functions

조회 수: 1 (최근 30일)
M B
M B 2014년 5월 31일
편집: the cyclist 2014년 5월 31일
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.

채택된 답변

the cyclist
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:
  댓글 수: 2
Star Strider
Star Strider 2014년 5월 31일
I can’t find it anywhere in R2014a.
the cyclist
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:
You may need to click that little arrow on the far right to open the tab.
The functionality is described on this documentation page.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by