| MATLAB Functions | Help Desk |
evalin
Evaluate expression in workspace.
evalin(ws,'expression') evalin(ws,'try','catch')
evalin(ws,'expression')
evaluates expression in the context of the workspace ws. ws can be either 'caller' or 'base'.
evalin(ws,'try','catch')
tries to evaluate the try expression and if that fails it evaluates the catch expression in the specified workspace.
evalin is useful for getting values from another workspace while assigin is useful for depositing values into another workspace.
assignin Assign variable in workspace.
evalin Interpret strings containing MATLAB expressions