Magnate Y Valentino
y = RankOrderFilter(x, window, thd) runs a rank-order filtering of order N on x. y is the same size as x. If x is a matrix, RankOrderFilter operates along the columns of x.Rank-order filter calculates the p'th percentile of the data on an N sized window round each point of x. p can be a number...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (53): Rank-Order Filter Download |
Euler Angles To Quaternion Conversion for six basic sequence of rotations around X(Roll),Y(Pitch) and Z(Yaw) axis.Allowed Sequences: xyz, xzy, yxz, yzx, zxy, zyx.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Euler angles to Quaternion Conversion (for six basic sequence of rotations) Download |
G3 = gauss3D(sz_X, sz_Y, sz_Z, a, prec);returns a 3 dimensional matrix being a gaussian bell curve where the width in the (x/y/z)-dimension is proportional to 1/a(1), 1/a(2) and 1/a(3), respectively. "prec" is the data precision.Default is a=[2.5 2.5 2.5] and prec='double'Examples:Cubic-shaped...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): Gaussian window in 3 dimensions Download |
As an example, suppose you had taken 155 seconds of data of the location (x,y,z) of a particle as a function of time (t). It is convenient to put that all into a struct, such as this one:>> datadata = t: [155000x1 double] x: [155000x1 double] y: [155000x1 double] z: [155000x1 double]If you wanted...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Structure Cut Download |
Y = DCTN(X) returns the discrete cosine transform (DCT) of X.X = IDCTN(Y) returns the inverse discrete cosine transform (IDCT) of Y.Y = DSTN(X) returns the discrete sine transform (DST) of X.X = IDSTN(Y) returns the inverse discrete sine transform (IDST) of Y.X and Y can be N-dimensional.D =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Screenshot Impulse response invariant discretization of distributed order low-pass filter Download |
Very lean an simple code that automatically finds major peaks, their locations, fwhms and area in a given signal y versus x. Requires no input parameters. The output is a matrix with peaks sorted in rows and following columns:output = peak No. | peak Y | peak X | peak fwhm | peak area
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): Auto Peak Finder & Analyser 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 |
This a very simple function that produces a condensed, approximate version of the time-series signal y, with each group of n adjacent points in y replaced by its average. You can use this to condense over-sampled signals so that subsequent processing will be easier and faster. Or you can use it...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Condense time-series signals Download |
function y = getiq(x,freq)this takes in the frequencies X that were received at a rate of FREQ and gives you a complex value which is I and Q - this is used when you have frequency X changing and the phase is cumulative - meaning it does not start each new frequency at the same spotORfunction y =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): Get I and Q Download |
This code takes an input of a set of given (x,y) points in the Cartesian coordinates and returns the center and radius of the minimum circle enclosing the points.This code is based on that of Yazan Ahed, and contains no changes in the algorithm but only in the structure.The previous code was...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): Minimum Enclosing Circle Download |
Computes Direction Cosine Matrix from Euler angles (in radians) for six basic sequence of rotations around X(Roll),Y(Pitch) and Z(Yaw) axis.Allowed rotations sequences:xyz, xzy, yxz, yzx, zxy, zyxORrpy, ryp, pry, pyr, yrp, ypr----------------------------dcmfromeuler.mfunction to compute DCM from...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): DCM from Euler angles Download |
Non Convex Optimization Algorithms for Group SparsitySolves a dummy OFDM sparse channel estimation problemReweighted Lm,p algorithm for noiseless case min||x||_m,p s.t. y = AxReweighted Lm,p algorithm for noisy case min||x||_2,p s.t. ||y - Ax||_qSmoothed L2,0 algorithm solves a smooth version...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): Non Convex Algorithms for Group Sparse Optimization Download |
This implementation is based on "The Earth Mover's Distance as a Metric for Image Retrieval", Y. Rubner, C. Tomasi and L. Guibas, International Journal of Computer Vision, 40(2), pp. 99-121, 2000.emd ---> computes the earth mover's distance between two signaturesgmd ---> computes the ground...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): The Earth Mover's Distance Download |
MISO_FIRWIENER(N, X, Y) computes the optimal FIR Wiener filter of order N, given any number of (stationary) random input signals as the columns of matrix X, and one output signal in column vector Y.Requires BLOCK_LEVISON.M, also on the file exchange.By Keenan Pepper; uploaded with permission.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Find optimal FIR Wiener filter for multiple inputs Download |
Suppose that you have a signal Y (Y can be a time series, a parametric surface or a volumetric data series) corrupted by a Gaussian noise with unknown variance. It is often of interest to know more about this variance. EVAR(Y) thus returns an estimated variance of the additive noise.EVAR provides...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Noise variance estimation Download |
pbest=EASYFIT(x,y,varargin) fits the data Y = f(X) to a model function Y = FUN(P,X).If FUN is not given as an input argument, POLYFIT is used as the model function.Bounds on the parameters P may be set.By default a plot is generated which presents the data as well the "best" curve, confidence...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): Fit experimental data is easy Download |
function P=ipeak(DataMatrix,PeakD,AmpT,SlopeT,SmoothW,FitW)Keyboard-operated Interactive Peak Finder for data in data matrix "DataMatrix", with x values in row 1 and y values in row 2. Returns the peak table in P (Peak #, Position, Height, Width.) See...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): iPeak: Interactive Peak Detector Download |
D = DISTMAT(X,Y) for matrices X and Y returns the distance matrix where the (i,j)th entry is the d-norm distance between the ith and jth row of X and Y respectively.DISTMAT(X,Y,d) computes a specific d-norm distance. Default=2[D,XI,YI]=DISTMAT(X,Y,d,var) gives the indices of the sorted values of...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): distmat Download |
Contains three matrix completion algorithms and a demo script for running them. Also compares against other matrix completion algorithms - Singular Value Thresholding and Fixed Point Iteration.Solves the following three optimization problems:min rank(X) subject to ||y - M(X)||_2
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Matrix Completion via Thresholding Download |
After publishing my new block simulink library Function Square,Y output ,and Xput i shoz lineqrity chqnging input vqlue.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): Linearity Of Block Function Square Simulink Download |