Borrar filtros
Borrar filtros

View externally-scoped variables in Workspace browser

1 visualización (últimos 30 días)
Jim
Jim el 10 de Jun. de 2015
Comentada: Jim el 11 de Jun. de 2015
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.

Respuesta aceptada

Drew Davis
Drew Davis el 11 de Jun. de 2015
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 comentario
Jim
Jim el 11 de Jun. de 2015
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by