Evaluate the function named name. Any arguments after the first are passed on to the named function. For example,
feval ("acos", -1) 3.1416calls the function
acoswith the argument ‘-1’.The function
fevalis necessary in order to be able to write functions that call user-supplied functions, because Octave does not have a way to declare a pointer to a function (like C) or to declare a special kind of variable that can be used to hold the name of a function (likeEXTERNALin Fortran). Instead, you must refer to functions by name, and usefevalto call them.