MATLAB: How many variables in workspace

numbervariable

Hi, I need a function how return the number of variables in the Workspace. Does Someone knows if this function exists?
thanks Marco

Best Answer

variablesInCurrentWorkspace = who
numVariables = length(variablesInCurrentWorkspace)
Related Question