FUNCTION REFERENCE

evalin

Evaluate code in the base or caller workspace.

Evaluate code in the base or caller workspace.

Syntax

value = evalin('base'|'caller', code [, catchCode])

Example

a=7; evalin('base','a+1')   % 8

Differences from MATLAB: Function definitions inside evaluated text are rejected.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.