MATLAB: How to get the base workspace varibles in a function

MATLABsimulink

Hey guys, the 'who' method only return the function argument. How to return the base workspace? Thank you so much`~~

Best Answer

Do you mean that you just want to get the list of variables in the base workspace from your function? How about:
evalin('base', 'who')