Vectors Dgt
For vectors, Y = RUNMEAN(X,M) computes a running mean (also known as moving average) on the elements of the vector X. It uses a window of 2*M+1 datapoints. M an positive integer defining (half) the size of the window. In pseudo code: Y(i) = sum(X(j)) / (2*M+1), for j = (i-M):(i+M), and...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): RUNMEAN Download |
CONV_MTX Convolution matrix. If 'x' is a column vector of length 'nx', then conv_mtx(x,nh) gives a toeplitz matrix 'X' of size (nx+nh-1) times (nh). 'nh' is the length of the column vector 'h' with which 'x' is convolved. Thus finally 'X*h' is same as conv(x,h). If 'x' and 'h' are row vectors,...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): convlution matrix in four lines Download |
The Expectation-Maximization algorithm (EM) is widely used to find the parameters of a mixture of Gaussian probability density functions (pdfs) or briefly Gaussian components that fits the sample measurement vectors in maximum likelihood sense [1]. In our work, the expectation-maximization (EM)...
Platforms: Matlab
License: Freeware | Size: 573.44 KB | Download (45): Gaussian Mixture Modeling GUI (GMM DEMO) Download |
Anthropomorphic arm with 6 DOF and spherical wrist It calculates the Inverse Kinematic of an Anthropomorphic arm with 6 DOF. 'q' is the solutions in radiant and K is the direct Kinematic matrix. K = [ n s a p; 0 0 0 1] where n, s, a are three vectors fo 3 elements that represents the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Inverse Kinematic for 6DOF arm Download |
StructTetraMesh is a tool to build structured tetreaedral mesh on cuboid dataset. This is usefull in avoiding delaunay 3D triangulation that for this kind of dataset are particularly slow and numerically unstable.This tool allows a huge speed improvement against delaunayn for 3D points, the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): STRUCTURED TETRAEDRAL MESH GENERATION Download |
It calculates the Inverse Kinematic of an Anthropomorphic arm with 3 DOF. 'q' is the solutions in radiant and K is the direct Kinematic matrix. K = [ n s a p; 0 0 0 1] where n, s, a are three vectors fo 3 elements that represents the end-effector's orientation, and p is the desired end-effector...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): Inverse Kinematic algorithm Download |
The zip includes:(1) lsqAffineSpace: a 'low level' routine that takes a set of m-dimensional real sample data and returns the optimal-fit k-dimensional affine subspace, with some options for discarding outliers.(2) lsqPlane and lsqLine: lsqAffineSpace wrappers, that compute optimal line and...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): Least-Squares optimal affine subspace Download |
This function take the input of a data vector x, which is to be binned; it also takes in the amount bins one would like the data binned into. The output is two vectors, one containing the normalised frequency of each bin (Freq), the other, the midpoint of each bin (midpts).
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Natural Log Binning Download |
[M,B] = AG_RECTA(X,Y) finds the the slope M and the y-intercept B of the line that better fits to the X,Y data. X and Y are vectors of the same length.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Straight-line fitting genetic algorithm Download |
This is an example of the basic Active Shape Model (ASM) and also the Active Appearance Model (AAM) as introduced by Cootes and Taylor, with multi-resolution approach, color image support and improved edge finding method. Very useful for automatic segmentation and recognition of biomedical...
Platforms: Matlab
License: Freeware | Size: 9.88 MB | Download (50): Active Shape Model (ASM) and Active Appearance Model (AAM) Download |
Many image processing applications require an extensive usage of FFT2 routine (or, in the most general case, a N-dimensional FFT) of matrices having the same dimensions. In these cases MATLAB FFT2 can result extremely inefficient. In general the execution time can be significantly reduced by...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): FFT2 optimization Download |
Like polyfit.m but includes weighting of each data point.Summary----------------Find a least-squares fit of 1D data y(x) with an nth order polynomial, weighted by w(x).Usage-----P = polyfitweighted(X,Y,N,W) finds the coefficients of a polynomial P(X) of degree N that fits the data Y best in a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): polyfitweighted Download |
This is a single M-file that implements a Nelder-Mead simplex minimizer. It makes use of MATLAB's persistent variables to create a "state machine" implementation. This allows entire minimization programs to be written as MATLAB scripts, as it does not require a function to be defined and passed...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): State-machine simplex minimizer Download |
4 files are included in the package:(1) fs01.m - the 1st-order local linear approximation (LLA) very similar to algorithm by Farmer and Sidorowich (1987). Uses constrained linear least squares (lsqlin) and(2) ts1.m - to reconstruct the vectors of the state space.(3) Example.m - runs fs01 and ts1...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): Constrained LLA to predict a chaotic time series Download |
The training input vectors and target vectors are read from files data1in and data1out respectively. The no of nodes in input and output layer is decided depending on the no. of rows in these datasets.The no of hidden layers, No of nodes in each hidden layer and the target error (put 0.1) is to...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Back Propogation Algorithm Download |
Interfaces a C# generated dll to MATLAB using the COM interface. Currently the .NET platform is not supported by MATLAB as such to connect to C# requires the use of COM technology. The code makes an ActiveX server using C#, this server has a single event that functions in a similar way to the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): C#, ActiveX Server Download |
GRDWRITE2(X,Y,Z,'file.grd') will create a grid file containing the data in the matrix Z. X and Y should be either vectors with dimensions that match the size of Z or two-component vectors containing the max and min values for each. The file will be a COARDS-compliant NetCDF file, the standard...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): grdwrite2 Download |
INVDISTGRID Simple, robust gridding using inverse-distance interpolation. [Xi,Yi,Zi] = invdistgrid[X,Y,Z,dx] Grids values in vector Z with coordinates X and Y into an array with spacing dx using inverse-distance weighting (default power =2). All data between grid points are used in weighting. If...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): INVDISTGRID Download |
Different elevations cannot be identified with standard matlab functions such as surf, even changing FaceColor attribute to activate interpolation. In contrast, with this function alows one can define contour levels and different colors are applied to each level.Instead of using surf(x,y,z), you...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): Plots a surface coloring by layers (using contour curves) Download |
It can handle iteration for all permutations, combinations, subsets and tuples.This is useful when the results of perms or nchoosek are too large to hold in memory but the number of iterations is feasible.Vectors are ordered according to number of elements and lex. if the length is the same, they...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): NextVector Toolbox for Mathematics Download |