Posts Tagged ‘interpolation’
Analysis of Functions, Interpolation, Curve Fitting, Integrals and Differential Equations 2
Localize minima and maxima of functions
Let us try to find the local minima and maxima for the function func(x). The interval of interest is [-6 0]. The algorithms are iterative. There are 2 methods to use. The first one decides x in a given interval, and the second one looks for x around an initial guess. To decide the maxima we are looking for an x that minimizes the negative function: -func(x). Read More
Tags: Analysis of Functions, applications, Command Window, curve, Define, differential, end, equations, Examples, fitting, for, format, full, Functions, grid, help, hold, if, inf, info, integral, integrals, integrand, interpolation, legend, load, matlab, mesh, meshgrid, minus, plot, polynomial, rand, randn, rem, round, sign, sum, title, tutorials, ver, what
Analysis of Functions, Interpolation, Curve Fitting, Integrals and Differential Equations
In this tutorial we will deal with analysis of functions, interpolation, curve fitting, integrals and differential equations. Firstly, we will need to use polynomials and therefore we have to be familiar with the representation of these. A general polynomial looks like: p(x)=anxn + an-1xn-1 +……….+ a1x + a0 and is represented by a vector in Matlab:
p=[ an an-1 ....... a1 a0 ] Read More