Change workspace from function to base

조회 수: 23 (최근 30일)
Alex Wooten
Alex Wooten 2021년 3월 9일
댓글: Stephen23 2021년 3월 10일
I would like to switch workspaces from a function workspace to Matlab's base workspace. To illustrate, I can run one of my script files and place a breakpoint within an embedded function. The workspace window contains the variables local to that function. How do I get back to my script's workspace (base) without just stepping through the remainder of the function until it goes back to the main script or pressing the quit debugging button? I don't need to use these variables in the embedded function, since I've already passed in the parameters I need, this would just be to visually check what's going on in the base workspace at that moment.
  댓글 수: 3
Alex Wooten
Alex Wooten 2021년 3월 9일
Sorry, I don't see what you're talking about. Could you be more specific? I don't see anything named stack above the editor window.
Stephen23
Stephen23 2021년 3월 10일
As well as the menu option described by Mario Malic and Matt J, you can also use these commands:
Both of these approaches are explained in the MATLAB documentation:

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

채택된 답변

Matt J
Matt J 2021년 3월 9일
편집: Matt J 2021년 3월 9일
I don't see anything named stack above the editor window.
You will not see it until you are at a breakpoint, but once you are it will be here:
  댓글 수: 1
Alex Wooten
Alex Wooten 2021년 3월 9일
Exactly what I was looking for, thanks!

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by