Search code examples
matlabvariablesworkspace

None of my MATLAB variables from my function are appearing in my workspace? I don't want them to be output variables


enter image description here

Why aren't any of the varibles from filter_img appearing in my workspace? This would be very helpful to my debugging.

I also need to clarify the fact that these variables used to appear on my workspace without them being outputs.


Solution

  • They're in a function so they're only in your workspace while the function is executing. Once it is done, they will no longer be in your workspace.

    To see them, you can type keyboard somewhere in the function and then use the matlab debugger to step through your function, checking the values of the variables in the command window.