evstr — evaluation of expressions
H=evstr(Z) [H,ierr]=evstr(Z)
matrix of character strings M
or list(M,Subexp)
matrix of character strings
vector of character strings
matrix
integer, error indicator
Returns the result of the evaluation of the matrix of character
strings M
. Each element of the matrix must define a valid
Scilab expression.
If the evaluation of M
expression leads to an error, the single
return value version, H=evstr(M)
, raises the error as usual.
The two return values version, [H,ierr]=evstr(M)
, on the other
hand, produces no error, but returns the error number in ierr
.
If Z
is a list, Subexp
is a vector of character strings,
that defines sub_expressions which are evaluated before evaluating
M
. These sub_expressions must be referred to as %(k)
in
M
, where k
is the sub-expression's index in Subexp
.
evstr('a=1') is not valid (use execstr
instead).