Change workspace from function to base
Mostrar comentarios más antiguos
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 comentarios
Mario Malic
el 9 de Mzo. de 2021
There's a dropdown menu named 'stack' (IIRC) that contains workspaces in each function on the just above the editor.
Alex Wooten
el 9 de Mzo. de 2021
Stephen23
el 10 de Mzo. de 2021
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:
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
