eval

Evaluates the given expression.

Syntax

eval(A)

Inputs

A
Expression to be evaluated.
Type: char | string
Dimension: string

Outputs

R
Result of evaluated expression.

Examples

Eval with variable:
a=2
eval('1+a*3')
R = 7
Eval with variable:
R = eval('a=2')
disp(a)
R = 2
2