fzero(fun,x0) |
Root of nonlinear function |
fminsearch(fun,x0) |
Find minimum of function |
fminbnd(fun,x1,x2) |
Find minimum of fun in [x1, x2] |
fft(x), ifft(x) |
Fast Fourier transform and its inverse |
Integration and Differentiation |
integral(f,a,b) |
Numerical integration (analogous functions for 2D and 3D) |
trapz(x,y) |
Trapezoidal numberical integration |
diff(X) |
Differences and approximate derivatives |
gradient(X) |
Numerical gradient |
curl(X,Y,Z,U,V,W) |
Curl and angular velocity |
divergence(X,...,W) |
Compute divergence of vector field |
ode45(ode,tspan,y0) |
Solve system of nonstiff ODEs |
ode15s(ode,tspan,y0) |
Solve system of stiff ODEs |
deval(sol,x) |
Evaluate solution of differential equation |
pdepe(m,pde,ic,...bc,xm,ts) |
Solve 1D partial differential equation |
pdeval(m,xmesh,...usol,xq) |
Interpolate numeric PDE solution |
Interpolation and Polynomials |
interpl(x,v,xq) |
1D interpolation (analogous for 2D and 3D) |
pchip(x,v,xq) |
Piecewise cubic Hermite polynomial interpolation |
spline(x,v,xq) |
Cubic spline data interpolation |
ppval(pp,xq) |
Evaluate piecewise polynomial |
mkpp(breaks, coeffs) |
Make piecewise polynomial |
unmkpp(pp) |
Extract piecewise polynomial details |
poly(x) |
Polynomial with specified roots x |
polyeig(A0,A1,...Ap) |
Eigenvalues for polynomial eigenvalue problem |
polyfit(x,y,d) |
Polynomial curve fitting |
residue(b,a) |
Partial fraction expansion/decomposition |
roots(p) |
Polynomial roots |
polyval(p,x) |
Evaluate poly p at points x |
polyint(p,k) |
Polynomial integration |
polyder(p) |
Polynomial differentiation |