View externally-scoped variables in Workspace browser

조회 수: 3(최근 30일)
Jim
Jim 2015년 6월 10일
댓글: Jim 2015년 6월 11일
If execution is suspended in a nested function because of an inserted breakpoint, the Workspace browser only shows local variables even though variables defined in outer (nesting) functions have external scope. Is there any way to display those externally-scoped variables in the browser? If not, this might be something to consider for a future release.

채택된 답변

Drew Davis
Drew Davis 2015년 6월 11일
There is an option 'Function Call Stack' in the toolstrip of the MATLAB editor when in debug mode. Change this drop down option the workspace you would like to view.
  댓글 수: 1
Jim
Jim 2015년 6월 11일
Right, I was just hoping (wishing) there might be a more convenient way to view the values of all variables that are in-scope to a nested function at once, including those assigned in an outer (nesting) function.

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by