MATLAB: How to see a variable of a function in the Workspace

functions and workspace

How to see a variable of a function in the Workspace?

Best Answer

function y=som(x,y,z)
global a b
a=x*y
b=y^z
y=a+b
When you call the function som
global a b
y=som(1,2,3)