MATLAB: How to view the function workspace

MATLABworkspace

I have several functions in my script. When I run the script, the variables do not show up in the base workspace. I don't know how to view the function workspace, hence I can't see the values of my function variables.

Best Answer

Your answer with the breakpoints is the best one. Another way would be to use the whos command inside of the function:
whos