Change workspace from function to base

45 次查看(过去 30 天)
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.

请先登录,再进行评论。

采纳的回答

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:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Function Creation 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by