# Approximation of 2 d data by natural cubic spline in matlab

The following Matlab project contains the source code and Matlab examples used for approximation of 2 d data by natural cubic spline. ncs2dapprox.

# My cubic splines in matlab

The following Matlab project contains the source code and Matlab examples used for my cubic splines. This routine plots the cubic-spline curve that will pass through given set of points.

# N dimensional cardinal spline (catmull rom) spline interpolation in matlab

The following Matlab project contains the source code and Matlab examples used for n dimensional cardinal spline (catmull rom) spline interpolation. Cardinal(Catmull-Rom) Spline Interpolation for given four control points using uniform parameterization.

# Natural cubic spline at equally spaced nodes in matlab

The following Matlab project contains the source code and Matlab examples used for natural cubic spline at equally spaced nodes . Using cubic B-splines, the natural cubic spline is calculated assuming equally spaced nodes. It is formatted so it functions in a similar manner as the MATLAB command "spline"

# Clamped (or fixed) cubic spline at equally spaced data points in matlab

The following Matlab project contains the source code and Matlab examples used for clamped (or fixed) cubic spline at equally spaced data points . Calculates the clamped cubic spline using B-splines, for equally spaced points (i.e., xd(i+1)-xd(i)=h for all i).

# Smooth 3d bezier curves with implicit control points in matlab

The following Matlab project contains the source code and Matlab examples used for smooth 3d bezier curves with implicit control points. This code can be used to draw 3D cubic splines by only entering the points through which the spline should pass.

# Periodical cubic interpolation in matlab

The following Matlab project contains the source code and Matlab examples used for periodical cubic interpolation. The functions pchip and spline of matlab are adapted to the periodical case: perpchip and perspline. Some examples are given

# Constrained cubic spline approximation in matlab

The following Matlab project contains the source code and Matlab examples used for constrained cubic spline approximation . Data smoothening and re-sampling are often necessary to handle data obtained from laboratory and industrial experiments.

# H infinity optimal causal iir inverse filter for the cubic spline in matlab

The following Matlab project contains the source code and Matlab examples used for h infinity optimal causal iir inverse filter for the cubic spline. Computes the H-infinity optimal causal filter (indirect B-spline filter) for the cubic spline.

# Piecewise cubic interpolation in matlab

The following Matlab project contains the source code and Matlab examples used for piecewise cubic interpolation. Piecewise cubic interpolation and approximated calculation of first and second derivative at the interpolation point.

# Piecewise hermite cubic interpolation in matlab

The following Matlab project contains the source code and Matlab examples used for piecewise hermite cubic interpolation. Piecewise Hermite cubic interpolation between 2 points knowing derivative values Syntax: y=p3hermite(x,pointx,pointy,yprime,plt) Where pointx = data points of the independent variable            (The points do not have to be equally spaced) pointy = data points of the dependent variable.

# Restricted cubic spline in matlab

The following Matlab project contains the source code and Matlab examples used for restricted cubic spline. %Fits the so called restricted cubic spline via least squares (see Harrell %(2001)).

# Image(or matrix) rotation and scaling function in matlab

The following Matlab project contains the source code and Matlab examples used for image(or matrix) rotation and scaling function. This function takes an image or matrix and rotate it by theta (radian, rigid motion) The image could also be enlarged or shrinked by an optional scaling factor  img: input image (or or a 2D Matrix)  dtheta: the amount of rotation in radian  scale: a scalar number that scales the image (default=1)  interpMethod:       'nearest' - nearest neighbor interpolation       'linear' - bilinear interpolation (defalt)