Why is the Matlab function “feval” needed?

后端 未结 3 1376
灰色年华
灰色年华 2020-12-31 02:28

A function handle can be used to call a function, e.g.

f = @sin;
val = f(1.0);

so why is fev

3条回答
  •  情话喂你
    2020-12-31 03:00

    Until Release 14 (MATLAB 7), feval was the way to evaluate a function handle... or to evaluate functions when they are specified by their name.

    Source: Mental model for feval().

提交回复
热议问题