Numerical analysis

2d cubic beizer curve in matlab

The following Matlab project contains the source code and Matlab examples used for 2d cubic beizer curve. "Funct_Bezier.m" a function to evaluate and plot 2D cubic bezier curve for given four control points and interval. Utilizes Horner's rule for efficient compuation. A simple test program is given "TestCubicBezier.m"

First order stiff ordinary differential equation solver in matlab

The following Matlab project contains the source code and Matlab examples used for first order stiff ordinary differential equation solver. Implicit methods are important in numerical solution of stiff ODEs due to the instable nature of explicit methods. We wrote a program of a general one-dimensional implicit-solver including diagonally implicit case.

Spatial correlation generator with latin hipercube sampling and cholesky decomposition in matlab

The following Matlab project contains the source code and Matlab examples used for spatial correlation generator with latin hipercube sampling and cholesky decomposition. It generates a stochastic field on a squared space. Samples are created by Latin hypercube sampling and the spatial correlation is performed by an algorithm based on Cholesky decomposition. Example inside.

Newton raphson method for transcendental equations in matlab

The following Matlab project contains the source code and Matlab examples used for newton raphson method for transcendental equations. This code evaluates the root of transcendental equation with the help of Newton Raphson method with enhanced features like vanishing of differential of a function, Infinite cycling for root due to a poor initial approximation or when a root exists but differential does not.

Pseudo inverse in matlab

The following Matlab project contains the source code and Matlab examples used for pseudo inverse. Factorize a matrix for pseudo-inverse to solve the normal equation: A*x = b There are two advantages of pseudo-inverse compared to MATLAB pinv: - PINV requires costly SVD - PINV does not operated with sparse matrix.

Easily call any lapack or blas routine from inside matlab.

The following Matlab project contains the source code and Matlab examples used for easily call any lapack or blas routine from inside matlab. . This package contains the command "lapack", which provides a simple interface to call any LAPACK or BLAS routine from inside Matlab, as well as the command "lapackhelp", which brings up detailed information about any LAPACK or BLAS routine.

Permute a matrix in matlab

The following Matlab project contains the source code and Matlab examples used for permute a matrix. PERMM Permutates a matrix A by given indexes by computing B = P'*A*P B = permm(A,indx) [B,P] = permm(A,indx) The function applies simultaneous column and row permutation, that is by given indexes indx = [k j m .

Finite element solution to the 2nd order diff equation with difussion and convection terms only in matlab

The following Matlab project contains the source code and Matlab examples used for finite element solution to the 2nd order diff equation with difussion and convection terms only.  au'(x)+bu"(x)=0 for 0<=x<=d BC: u(0)=0 and u(d)=h Example: Finding an approximate solution to the following BVP using 16 elements of equal length.

Pages

Subscribe to RSS - Numerical analysis