Quick Start Guide to MATLAB: Numerical Analysis
Numerical Analysis 2.1 Differentiation The diff function is used to compute the differentiation of a function, with the following four related syntaxes: diff(f) returns the first derivative of f with respect to the predefined independent variable. diff(f, ‘t’) returns the first derivative of f with respect to the independent variable t. diff(f, n) returns the … Read more