Installation guide
6 Editing and Debugging M-Files
Command Window and M ATLAB displays its current value. For the example,
to see the value of
n,type
n
MATLAB returns the expected result
n=
2
and displays the debug prompt, K>>.
Viewing Values in the Workspace Browser and Array Editor
You can view the value of variables in the Value column of the Workspace
browser. The Workspace brow ser displays all variables in the current
workspace. Use the Stack in the Workspace browser to change to another
workspace and view its v ariables.
The Value column does not show all details for all variables. To see details,
double-click a variable in the Workspace browser. The Array Editor opens,
displaying the content for that variable. You can open the Array Edito r
directly for a variable using
openvar.
To see the value of
n in the A rray Editor for the example, type
openvar n
6-116