Software Listing of Author : "Scott Mckinney"
- derivative
- License: Freeware
- Price: 0.00


DERIVATIVE Compute derivative while preserving dimensions DERIVATIVE(X), for a vector X, is an estimate of the first derivative of X. DERIVATIVE(X), for a matrix X, is a matrix containing the first derivatives of the columns of X. DERIVATIVE(X,N) is the Nth derivative along the columns of X. DERIVATIVE(X,N,DIM) is the Nth derivative along dimension DIM of X. DERIVATIVE averages neighboring values of the simple finite differencing method to obtain an estimate of the derivative that is exactly the same size as X. This stands in contrast to Matlab's built-in DIFF, which, when computing a derivative of order N on length M vectors, produces a vector of length M-N. DERIVATIVE is therefore useful for estimating derivatives at the same points over which X is defined, rather than in between samples (as occurs implicity when using...
- Publisher: Scott McKinney
- Date Released: 16-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Fast root-mean-square (RMS) power
- License: Shareware
- Price:


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 of the instantaneous power expressed in the signal. FASTRMS(X), when X is a matrix, is the time-varying RMS power of the columns of X. FASTRMS(X,WINDOW), if WINDOW is a vector, computes the moving quadratic mean using the weights specified in WINDOW. If WINDOW is %an integer, a LENGTH(WINDOW)-point rectangular window is used. When FASTRMS is being used to estimate the instantaneous amplitude of an oscillatory, zero-mean signal X (see below), WINDOW should be chosen based on the frequency content of X. Lower frequency signals require longer...
- Publisher: Scott McKinney
- Date Released: 05-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- hilbert2
- License: Freeware
- Price: 0.00


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 of Hz). If FS is not specified, HILBERT2 uses a sampling rate of 1 Hz. If X is a matrix, HILBERT2 operates along the columns of X. If the input X is complex, then only the real part is used: X=real(X) HILBERT2 returns the magnitude (ENV) and rate of change of the argument (FREQ) of the complex analytic signal corresponding to X. For a theoretical explication of this techinque and the formulas employed here, see: Ktonas & Papp (1980) Instantaneous envelope and phase extraction from real signals. Signal Processing 2:373-385. Be sure to...
- Publisher: Scott McKinney
- Date Released: 15-05-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- mapcolors
- License: Shareware
- Price:


MAPCOLORS Create a custom RGB colormap by interpolating between two pre-defined extremes. MAPCOLORS(START,FINISH) returns a 64 x 3 matrix containing RGB intensities linearly interpolated between the values specified in START and FINISH, which are 3-element vectors containing RGB intensities 0-255. MAPCOLORS(START,FINISH,NBITS) returns an nBITS x 3 matrix instead. EXAMPLE: To recreate Matlab's built-in 'winter' colormap, execute the following: wintermap = mapcolors([0 0 255],[0 255 127.5]); Observe that: size(wintermap) % >> [64 3] wintermap(1,:) % >> [0 0 1] wintermap(64,:) % >> [0 1 0.5] See also COLORMAP
- Publisher: Scott McKinney
- Date Released: 20-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Screenshot Fast root-mean-square (RMS) power
- License: Freeware
- Price: 0.00


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 of the instantaneous power expressed in the signal. FASTRMS(X), when X is a matrix, is the time-varying RMS power of the columns of X. FASTRMS(X,WINDOW), if WINDOW is a vector, computes the moving quadratic mean using the weights specified in WINDOW. If WINDOW is %an integer, a LENGTH(WINDOW)-point rectangular window is used. When FASTRMS is being used to estimate the instantaneous amplitude of an oscillatory, zero-mean signal X (see below), WINDOW should be chosen based on the frequency content of X. Lower frequency signals require longer...
- Publisher: Scott McKinney
- Date Released: 15-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- z2p
- License: Shareware
- Price:


Converts normally distributed z-statistic to one- or two-tailed p-value by integrating the standard normal pdf. If no "tails" value is specified, z2p computes the two-tailed value by default. The output p is the same size as z, which can be a scalar, vector, or matrix. Inputs: z: normally distributed z-statistic (positive or negative) (optional) tailed: the number of tails over which to compute the probability value. (Note: by symmetry of the normal distribution, the two-tailed p-value is twice the one-tailed value.) This function is useful for hypothesis testing when the test statistic is normally distributed.
- Publisher: Scott McKinney
- Date Released: 24-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
