MATLAB Functions Help Desk

evalin

Purpose

Evaluate expression in workspace.

Syntax

Description

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.

See Also

assignin    Assign variable in workspace.

evalin      Interpret strings containing MATLAB expressions



[ Previous | Help Desk | Next ]