Linspace
[coef, RSquared]=plotfit(x,y,polyorder)A simple function that accepts x,y data pairs in in the vectors "x" and "y", fits it to a polynomial of order "polyorder", plots the data and the fit, and displays the fit coefficients and the goodness-of-fit measure R-squared in the upper left corner of the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): plotfit Download |
HILBERT2 Extract instantaneous envelope and frequency from a bandlimited signal via Hilbert transform. [ENV FREQ] = HILBERT2(X,FS), for vectors X, returns estimates of the instantaneous envelope and frequency. X is assumed to be a band-limited signal sampled at a rate specified by FS (in units...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): hilbert2 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 |
SIMPGRIDSEARCH Multi-dimensional unconstrained nonlinear minimization using grid search + Simplex method. X = SIMPGDSEARCH(OBJFUN,GDVALUES) returns a vector X that is a minimizer of the function described in OBJFUN (usually an m file: OBJFUN.M).See OBJFUN_DEMO.M for how to write an objective...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): SIMPGDSEARCH Download |
The function waslh_func.m computes the Walsh Function of order n and length mExample:[W,t]=walsh_func(1000,5);Results:W is the Walsh function of order 5 and lenght 1000t is equal to linspace(-0.5,0.5,1000);I follow the description of Walsh Functions given inGermain Castellanos dodalvaro...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Walsh Functions Download |
EZFFT(T,U) plots the power spectrum of the signal U(T) , where T is a 'time' and U is a real signal (T can be considered as a space coordinate as well). If T is a scalar, then it is interpreted as the 'sampling time' of the signal U. If T is a vector, then it is interpreted as the 'time' itself....
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): EZFFT : An easy to use Power Spectrum (FFT) Download |
FASTRMS Instantaneous root-mean-square (RMS) power via convolution.FASTRMS(X), when X is a vector, is the time-varying RMS power of X, computed using a 5-point rectangular window centered at each point in the signal. The output is the same size as X and contains, for each point in X, an estimate...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Screenshot Fast root-mean-square (RMS) power Download |
[Fs,Vs]=subtri(F,V,n)Sub-triangulates the triangles defined by the patch format data F (faces) and V (vertices). Can be used to increase the density of triangulated data or to triangulate the icosahedron to create geodesic sphere triangulations with desired density.Creates n addition points on...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): subtri Download |
Some curve fitting or smoothing tools can benefit from knowledge of the noise variance to expect on your data. Kalman filters use this information, also some spline fitting tools. So I wrote a function to extract the noise variance from a signal vector. It also works on any specified dimension of...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): Estimatenoise Download |
This program places dates on time axis as DATETICK and works with ZOOM and PAN as DATETICKZOOM by Christophe Lauwerys. But, it also shows the full date after zooming or panning by using the ticks and time-axis label. So, if you zoom in down to second, you won't loose "when" you are.The input...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (50): tlabel.m (Sep 2009) Download |
This function generates patch data (faces d-deDUFd-deDt, vertices d-deDUVd-deDt and color data d-deDUCd-deDt) for 3D images. The patches are only generated for the voxels specified by the linear indices in d-deDUINDd-deDt. The variable d-deDUptyped-deDt indicatesthe type of patch:d-de?vd-deOao...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): ind2patch Download |