The concept of function functions enables you to pass functions as arguments. You can
evaluate the function as an argument using feval command. The inline command
creates a function from a string expression, while eval command evaluates the function
given in a string expression. MATLAB also provides functions to represent polynomials,
evaluate a polynomial at a point, multiply and divide polynomials, and take derivative
of a polynomial. MATLAB supports a function to call itself and you can write recursive
functions.
EXERCISES
5.1. You are given the following function:
function A = fnk(t)
nvals = length(t);
large = t(1);
for ii ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.