... MATLAB functions, to your own function in an M-file, or to anonymous functions An anonymous function is defined with a one-line expression, rather than by an M-file Try: g = @(x) x^2-5*x+6-sin(9*x) ... 3]) g(ans) Some of MATLAB’s functions are built in; others are distributed as M-files The actual listing of any M-file, MATLAB’s or your own, can be viewed with the MATLAB command type Try entering ... to evaluate the function on a vector, so it is often better to define an anonymous function (or M-file) so that it can operate entry-wise on scalars, vectors, or matrices Try this instead: g =...