Function evaluation
feval
evstr execstr
In this case Scilab evstr is an equivalent to feval, after modifying inputs such as in examples below.
In this case Scilab execstr is an equivalent to feval, after modifying inputs such as in examples below.
y1 = feval(@cos, [0 1]) % function is real y1 = feval(@abs, 1+%i) % function is not real [y1,y2] = feval(@size,1)
y1 = feval([0 1], cos) // function input is real y1 = evstr("abs(1+%i)") execstr("[y1,y2] = size(1)");