Trig Vectors
findFFT returns fft amplitude and frequency vectors from input data, with options to return normal fft, zeropadded fft, windowed fft, or both windowed and zeropadded to remove spectral leakage.IN data - vector containing information to perform fft on '-sampFreq',## - inputs sampling frequency of...
Platforms: Matlab
License: Freeware | Size: 317.44 KB | Download (40): findFFT Download |
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 |
This program plots the deformation field (displace vectors) contained in vector.txt.This producted by ITK image registration programs. Check the ITK output format of the registration program you are using and modify the fscanf line accordingly. NOTE the demonstration figure was plotted by...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (39): InSPIRE utility to plot a 2D displacement field 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 |
[alpha,delta] = eclip2equat(lambda,beta) returns the right ascension and declination in the equatorial coordinate system corresponding to the longitudinal and latitudinal coordinates in the ecliptic coordinate system (lambda and beta).[lambda,beta] = equat2eclip(alpha,delta) returns the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Conversion between Equatorial and Ecliptic Coordinates 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 |
Efficient implementation of K-medoids clustering methods. This method is similar to K-means but more robust.For more detail, please seehttp://en.wikipedia.org/wiki/K-medoidsInput data are assumed column vectors.tryload data;label=kmedoids(X,3);scatterd(X,3);
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (45): K-medoids Download |
Inside this ZIP-file you will find design patterns for change detection, creating dynamic test vectors, and fault detection. A recorded webinar based on these models is also available on the MathWorks web site. It is titled "Stateflow Design Patterns."http://www.mathworks.com/wbnr12385
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 307.2 KB | Download (39): Stateflow Design Patterns (Part II) 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 |
1) plotPlanes.m- plots planes and lines in 3D defined either by directional vectors or by normal vectors.Example:A = [1 1 0;0 0 1]; Ashift = [1 1 1];B = [1 1 1]; C = [1 1 0]plotPlanes(A,'d',Ashift,B,'Normal',C)======================================2) plotIntersection.m- plots intersection of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Plotting planes and their intersection in 3D 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 |