You are on page 1of 11

MATLAB Toolbox Quick Reference

Author: Jialong He Jialong_he@bigfoot.com http://www.bigfoot.com/~jialong_he

design. fir1 fir2 fircls fircls1 firls firrcos intfilt kaiserord remez remezord sgolay Design a window-based finite impulse response filter. Design a frequency sampling-based finite impulse response filter. Constrained least square FIR filter design for multiband filters. Constrained least square filter design for lowpass and highpass linear phase FIR filters. Least square linear-phase FIR filter design. Raised cosine FIR filter design. Interpolation FIR filter design. Estimate parameters for an FIR filter design with Kaiser window. Compute the Parks-McClellan optimal FIR filter design. Parks-McClellan optimal FIR filter order estimation. Savitzky-Golay filter design.

cheb2ap ellipap

Chebyshev type II analog lowpass filter prototype. Elliptic analog lowpass filter prototype.

Analog Filter Design


besself butter cheby1 cheby2 ellip Bessel analog filter design. Butterworth analog and digital filter design. Chebyshev type I filter design (passband ripple). Chebyshev type II filter design (stopband ripple). Elliptic (Cauer) filter design.

Signal Processing Toolbox Filter Analysis


abs angle freqs freqspace freqz freqzplot grpdelay impz unwrap zplane Absolute value (magnitude). Phase angle. Frequency response of analog filters. Frequency spacing for frequency response. Compute the frequency response of digital filters. Plot frequency response data. Compute the average filter delay (group delay). Compute the impulse response of digital filters. Unwrap phase angles. Zero-pole plot.

Analog Filter Transformation


lp2bp lp2bs lp2hp lp2lp Transform lowpass analog filters to bandpass. Transform lowpass analog filters to bandstop. Transform lowpass analog filters to highpass. Change the cut -off frequency for a lowpass analog filter.

IIR Digital Filter Design--Classical and Direct


butter Butterworth analog and digital filter design. Chebyshev type I filter design (passband ripple). Chebyshev type II filter design (stopband ripple). Elliptic (Cauer) filter design. Generalized digital Butterworth filter design. Prony's method for time-domain IIR filter design. Compute a linear model using Steiglitz-McBride iteration. Recursive digital filter design. cheby1 cheby2 ellip maxflat prony stmcb yulewalk

Filter Implementation
conv conv2 deconv fftfilt filter filter2 filtfilt filtic latcfilt medfilt1 sgolayfilt sosfil t upfirdn Convolution and polynomial multiplication. Two-dimensional convolution. Deconvolution and polynomial division. FFT -based FIR filtering using the overlap-add method. Filter data with a recursive (IIR) or nonrecursive (FIR) filter. Two-dimensional digital filtering. Zero-phase digital filtering. Find initial conditions for a transposed direct form II filter implementation. Lattice and lattice-ladder filter implementation. One-dimensional median filtering. Savitzky-Golay filtering. Second-order (biquadratic) IIR digital filtering. Upsample, apply an FIR filter, and downsample.

Filter Discretization
bilinear impinvar Bilinear transformation method for analog-to-digital filter conversion. Impulse invariance method for analog-to-digital filter conversion.

Linear System Transformations


latc2tf polystab Convert lattice filter parameters to transfer function form. Stabilize a polynomial. Scale the roots of a polynomial. z-transform partial-fraction expansion. Convert digital filter second-order section parameters to state-space form. Convert digital filter second-order section data to transfer function form. Convert digital filter second-order sections parameters to zero-pole-gain form. Convert digital filter state-space parameters to second-order sections form. Convert state-space filter parameters to transfer function form. Convert state-space filter parameters to zero-polegain form.

IIR Filter Order Estimation


buttord cheb1ord cheb2ord ellipord Calculate the order and cutoff frequency for a Butterworth filter. Calculate the order for a Chebyshev type I filter. Calculate the order for a Chebyshev type II filter. Calculate the minimum order for elliptic filters.

polyscale residuez sos2ss sos2tf sos2zp

Analog Lowpass Filter Prototypes FIR Digital Filter Design


convmtx cremez Convolution matrix. Complex and nonlinear-phase equiripple FIR filter besselap buttap cheb1ap Bessel analog lowpass filter prototype. Butterworth analog lowpass filter prototype. Chebyshev type I analog lowpass filter prototype.

ss2sos ss2tf ss2zp

tf2latc tf2sos tf2ss tf2zp zp2sos zp2ss zp2tf

Convert transfer function filter parameters to lattice filter form. Convert digital filter transfer function data to secondorder sections form. Convert transfer function filter parameters to statespace form. Convert transfer function filter parameters to zeropole-gain form. Convert digital filter zero-pole-gain parameters to second-order sections form. Convert zero-pole-gain filter parameters to statespace form. Convert zero-pole-gain filter parameters to transfer function form.

rceps

Real cepstrum and minimum phase reconstruction.

arcov armcov

Compute an estimate of AR model parameters using the covariance method. Compute an estimate of AR model parameters using the modified covariance method. Compute an estimate of AR model parameters using the Yule-Walker method. See the System Identification Toolbox documentation. Identify continuous-time filter parameters from frequency response data. Identify discrete-time filter parameters from frequency response data. Prony's method for time domain IIR filter design. Compute a linear model using Steiglitz-McBride iteration.

Statistical Signal Processing and Spectral Analysis


cohere corrcoef corrmtx cov csd pburg Estimate magnitude squared coherence function between two signals. Compute the correlation coefficient matrix. Compute a data matrix for autocorrelation matrix estimation. Compute the covariance matrix. Estimate the cross spectral density (CSD) of two signals. Estimate the power spectral density using the Burg method. Estimate the power spectral density using the covariance method. Estimate the pseudospectrum using the eigenvector method. Estimate the power spectral density (PSD) of a signal using a periodogram. Estimate the power spectral density using the modified covariance method. Estimate the power spectral density using the multitaper method (MTM). Estimate the power spectral density using MUSIC algorithm. Plot power spectral density (PSD) data. Estimate the power spectral density (PSD) of a signal using Welch's method. Estimate the power spectral density using the YuleWalker AR method. Estimate frequency and power content using the eigenvector method. Estimate frequency and power content using the root MUSIC algorithm. Estimate the transfer function from input and output. Estimate the cross-correlation function. Estimate the two-dimensional cross-correlation. Estimate the cross-covariance function (equal to mean-removed cross-correlation).

aryule ident invfreqs invfreqz prony stmcb

Windows
bartlett blackman boxcar chebwin hamming hann kaiser triang Compute a Bartlett window. Compute a Blackman window. Compute a rectangular window. Compute a Chebyshev window. Compute a Hamming window. Compute the Hann (Hanning) window. Compute a Kaiser window. Compute a triangular window.

pcov peig periodogram pmcov pmtm pmusic psdplot pwelch Chirp z-transform. Discrete cosine transform (DCT). Discrete Fourier transform matrix. Compute the one-dimensional fast Fourier transform. Compute the two-dimensional fast Fourier transform. Rearrange the outputs of the FFT functions. Compute the discrete-time analytic signal using the Hilbert transform. Inverse discrete cosine transform. One-dimensional inverse fast Fourier transform. Two-dimensional inverse fast Fourier transform. tfe xcorr xcorr2 xcov rooteig rootmusic pyulear

Linear Prediction
ac2poly ac2rc is2rc lar2rc levinson lpc lsf2poly poly2ac poly2lsf poly2rc rc2ac rc2is rc2lar rc2poly Convert an autocorrelation sequence to prediction polynomial. Convert an autocorrelation sequence to reflection coefficients. Convert inverse sine parameters to reflection coefficients. Convert log area ratio parameters to reflection coefficients. Compute the Levinson-Durbin recursion. Compute linear prediction filter coefficients. Convert line spectral frequencies to a prediction filter coefficients. Convert a prediction filter polynomial to an autocorrelation sequence. Convert prediction filter coefficients to line spectral frequencies. Convert a prediction filter polynomial to reflection coefficients. Convert reflection coefficients to an autocorrelation sequence. Convert reflection coefficients to inverse sine parameters. Convert reflection coefficients to log area ratio parameters. Convert reflection coefficients to a prediction filter polynomial. Compute the reverse Levinson-Durbin recursion. Compute reflection coefficients from an autocorrelation sequence.

Transforms
czt dct dftmtx fft fft2 fftshift hilbert idct ifft ifft2

Cepstral Analysis
cceps icceps Complex cepstral analysis. Inverse complex cepstrum.

Parametric Modeling
arburg Compute an estimate of AR model parameters using the Burg method.

rlevinson schurrc

eqtflength

Make the lengths of a transfer function's numerator and denominator equal. Modulation for communications simulation. Compute the period of a sequence. Convert a second-order section matrix to cell arrays. Time-dependent frequency analysis (spectrogram). Plot discrete sequence data. Strip plot. Decode 2n-level quantized integer inputs to floatingpoint outputs. Quantize and encode floating-point inputs to integer outputs.

Function Reference for its reference page.) imread Read image file. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Write image file. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.)

Multirate Signal Processing


decimate Interp interp1 resample spline upfirdn Decrease the sampling rate for a sequence (decimation). Increase sampling rat e by an integer factor (interpolation). One-dimensional data interpolation (table lookup). Change sampling rate by any rational factor. Cubic spline interpolation. Upsample, apply an FIR filter, and downsample.

modulate seqperiod sos2cell specgram stem strips udecode uencode

imwrite

Geometric Operations
imcrop imresize imrotate interp2 Crop image Resize image Rotate image 2-D data interpolation. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.)

Waveform Generation
chirp diric gauspuls gmonopuls pulstran rectpuls sawtooth sinc square tripuls vco Generate a swept-frequency cosine. Compute the Dirichlet or periodic sinc function. Generate a Gaussian-modulated sinusoidal pulse. Generate a Gaussian monopulse. Generate a pulse train. Generate a sampled aperiodic rectangle. Generate a sawtooth or triangle wave. Sinc function. Generate a square wave. Generate a sampled aperiodic triangle. Voltage controlled oscillator. getimage image

Graphical User Interfaces


fdatool sptool Open the Filter Design and Analysis Tool. Interactive digital signal processing tool (SPTool).

Pixel Values and Statistics


corr2 imcontour imfeature imhist impixel improfile mean2 pixval std2 Compute 2-D correlation coefficient Create contour plot of image data Compute feature measurements for image regions Display histogram of image data Determine pixel color values Compute pixel-value cross-sections along line segments Compute mean of matrix elements Display information about image pixels Compute standard deviation of matrix elements

Image Processing Toolbox Image Display


colorbar Display colorbar. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Get image data from axes Create and display image object. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Scale data and display as image. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Make movie from multiframe indexed image Display image Display multiple image frames as rectangular montage Display multiple images in single figure Adjust display size of image Display image as texture-mapped surface Zoom in and out of image or 2-D plot. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.)

Specialized Operations
buffer cell2sos cplxpair demod dpss dpssclear dpssdir dpssload dpsssave Buffer a signal vector into a matrix of data frames. Convert a cell array for second-order sections to a second-order section matrix. Group complex numbers into complex conjugate pairs. Demodulation for communications simulation. Discrete prolate spheroidal sequences (Slepian sequences). Remove discrete prolate spheroidal sequences from database. Discrete prolate spheroidal sequences database directory. Load discrete prolate spheroidal sequences from database. Save discrete prolate spheroidal sequences in database.

imagesc

immovie imshow montage subimage truesize warp zoom

Image Analysis
edge qtdecomp qtgetblk qtsetblk Find edges in intensity image Perform quadtree decomposition Get block values in quadtree decomposition Set block values in quadtree decomposition

Image Enhancement
histeq imadjust imnoise medfilt2 ordfilt2 Enhance contrast using histogram equalization Adjust image intensity values or colormap Add noise to an image Perform 2-D median filtering Perform 2-D order-statistic filtering

Image File I/O


imfinfo Return information about image file. (This is a MATLAB function. See the online MATLAB

wiener2

Perform 2-D adaptive noise-removal filtering

iradon phantom radon

Compute inverse Radon transform Generate a head phantom image Compute Radon transform

colormap

Set or get color lookup table. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Approximate indexed image by one with fewer colors Plot RGB colormap components. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.)

Linear Filtering
conv2 Perform 2-D convolution. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Compute 2-D convolution matrix Perform N-D convolution. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Perform 2-D filtering. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Create predefined filters

imapprox rgbplot

Neighborhood and Block Processing


bestblk blkproc col2im colfilt im2col nlfilter Choose block size for block processing Implement distinct block processing for image Rearrange matrix columns into blocks Perform neighborhood operations using columnwise functions Rearrange image blocks into columns Perform general sliding-neighborhood operations

convmtx2 convn

Color Space Conversions


hsv2rgb Convert HSV values to RGB color space. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Convert NTSC values to RGB color space Convert RGB values to HSV color space. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Convert RGB values to NTSC color space Convert RGB values to YCbCr color space Convert YCbCr values to RGB color space

filter2

ntsc2rgb rgb2hsv

fspecial

Linear 2-D Filter Design


freqspace Determine 2-D frequency response spacing. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Compute 2-D frequency response Design 2-D FIR filter using frequency sampling Design 2-D FIR filter using frequency transformation Design 2-D FIR filter using 1-D window method Design 2-D FIR filter using 2-D window method

Binary Image Operations


applylut bwarea bweuler bwfill bwlabel bwmorph bwperim bwselect dilate erode makelut Perform neighborhood operations using lookup tables Compute area of objects in binary image Compute Euler number of binary image Fill background regions in binary image Label connected components in binary image Perform morphological operations on binary image Determine perimeter of objects in binary image Select objects in binary image Perform dilation on binary image Perform erosion on binary image Construct lookup table for use with applylut

rgb2ntsc rgb2ycbcr ycbcr2rgb

freqz2 fsamp2 ftrans2 fwind1 fwind2

Image Types and Type Conversions


dither double Convert image using dithering Convert data to double precision. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Convert intensity image to indexed image Create indexed image from intensity image by thresholding Convert image to binary image by thresholding Convert image array to double precision Convert image array to 16-bit unsigned integers Convert image array to 8-bit unsigned integers Convert indexed image to intensity image Convert indexed image to RGB image Return true for binary image Return true for intensity image Return true for indexed image Return true for RGB image Convert matrix to intensity image Convert RGB image or colormap to grayscale Convert RGB image to indexed image Convert data to unsigned 16-bit integers. (This is a MATLAB function. See the online MATLAB

gray2ind grayslice im2bw im2double

Image Transforms
dct2 dctmtx fft2 Compute 2-D discrete cosine transform Compute discrete cosine transform matrix Compute 2-D fast Fourier transform. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Compute N-D fast Fourier transform. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Reverse quadrants of output of FFT. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Compute 2-D inverse discrete cosine transform Compute 2-D inverse fast Fourier transform. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Compute N-D inverse fast Fourier transform. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.)

Region-Based Processing
roicolor roifill roifilt2 roipoly Select region of interest, based on color Smoothly interpolate within arbitrary region Filter a region of interest Select polygonal region of interest

im2uint16 im2uint8 ind2gray ind2rgb isbw isgray isind isrgb mat2gray rgb2gray rgb2ind uint16

fftn

fftshift

idct2 ifft2

Colormap Manipulation
brighten Brighten or darken colormap. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.) Rearrange colors in colormap Find unique colormap colors and corresponding image

ifftn

cmpermute cmunique

Function Reference for its reference page.) uint8 Convert data to unsigned 8-bit integers. (This is a MATLAB function. See the online MATLAB Function Reference for its reference page.)

Layer Initialization Functions


initnw initwb Nguyen-Widrow layer initialization function. By-weight-and-bias layer initialization function.

Network Initialization Functions


initlay Layer-by-layer network initialization function.

Toolbox Preferences
iptgetpref iptsetpref Get value of Image Processing Toolbox preference Set value of Image Processing Toolbox preference

Network Use Functions Learning Functions


learncon learngd learngdm Conscience bias learning function. Gradient descent weight/bias learning function. Grad. descent w/momentum weight/bias learning function. Hebb weight learning function. Hebb with decay weight learning rule. Instar weight learning function. Kohonen weight learning function. LVQ1 weight learning function. LVQ2 weight learning function. Outstar weight learning function. Perceptron weight and bias learning function. Normalized perceptron weight and bias learning function. Self-organizing map weight learning function. Widrow-Hoff weight and bias learning rule. adapt disp display init sim train Allow a neural network to adapt. Display a neural network's properties. Display a neural network variable's name and properties. Initialize a neural network. Simulate a neural network. Train a neural network.

Demos
dctdemo edgedemo firdemo imadjdemo nrfiltdemo qtdemo roidemo 2-D DCT image compression demo Edge detection demo 2-D FIR filtering and filter design demo Intensity adjustment and histogram equalization demo Noise reduction filtering demo Quadtree decomposition demo Region-of-interest processing demo

learnh learnhd learnis learnk learnlv1 learnlv2 learnos learnp learnpn

New Networks Functions


network newc newcf newelm newff newfftd newgrnn newhop newlin newlind newlvq newp newpnn newrb newrbe newsom Create a custom neural network. Create a competitive layer. Create a cascade-forward backpropagation network. Create an Elman backpropagation network. Create a feed-forward backpropagation network. Create a feed-forward input -delay backprop network. Design a generalized regression neural network. Create a Hopfield recurrent network. Create a linear layer. Design a linear layer. Create a learning vector quantization network Create a perceptron. Design a probabilistic neural network. Design a radial basis network. Design an exact radial basis network. Create a self-organizing map.

Slide Shows
ipss001 ipss002 ipss003 Region labeling of steel grains Feature-based logic Correction of nonuniform illumination

learnsom learnwh

Neural Network Toolbox Analysis Functions


errsurf maxlinlr Error surface of a single input neuron. Maximum learning rate for a linear neuron.

Line Search Functions


srchbac srchbre srchcha srchgol srchhyb One-dim. minimization using backtracking search. One-dim. interval location using Brent's method. One-dim. minimization using Charalambous' method. One-dim. minimization using Golden section search. One-dim. minimization using Hybrid bisection/cubic search.

Distance Functions
boxdist dist linkdist mandist Distance between two position vectors. Euclidean distance weight function. Link distance function. Manhattan distance weight function.

Net Input Derivative Functions


dnetprod dnetsum Product net input derivative function. Sum net input derivative function.

Performance Derivative Functions


dmae dmse dmsereg Mean absolute error performance derivative function. Mean squared error performance derivatives function. Mean squared error w/reg performance derivative function. Sum squared error performance derivative function.

Net Input Functions Graphical Interface Function


nntool Neural Network Tool - Graphical User Interface. netprod netsum Product net input function. Sum net input function. dsse

Performance Functions
mae mse msereg sse Mean absolute error performance function. Mean squared error performance function. Mean squared error w/reg performance function. Sum squared error performance function.

Simulink Support Function


gensim Generate a Simulink block for neural network simulation.

dtansig dtribas

Hyperbolic tangent sigmoid transfer derivative function. Triangular basis transfer derivative function.

Topology Functions
gridtop Gridtop layer topology function. Hexagonal layer topology function. Random layer topology function. hextop randtop

Transfer Functions
compet hardlim hardlims logsig poslin Competitive transfer function. Hard limit transfer function. Symmetric hard limit transfer function. Log sigmoid transfer function. Positive linear transfer function. Hard limit transfer function. Radial basis transfer function. Saturating linear transfer function. Symmetric saturating linear transfer function. Softmax transfer function. Hyperbolic tangent sigmoid transfer function. Triangular basis transfer function.

Plotting Functions
hintonw hintonwb plotbr plotep plotes plotpc plotperf plotpv plotsom plotv plotvec Hinton graph of weight matrix. Hinton graph of weight matrix and bias vector. Plot network perf. for Bayesian regularization training. Plot weight and bias position on error surface. Plot error surface of single input neuron. Plot classification line on perceptron vector plot. Plot network performance. Plot perceptron input target vectors. Plot self-organizing map. Plot vectors as lines from the origin. Plot vectors with different colors.

Training Functions
trainb trainbfg trainbr trainc traincgb traincgf traincgp traingd traingda traingdm Batch training with weight and bias learning rules. BFGS quasi-Newton backpropagation. Bayesian regularization. Cyclical order incremental update. Powell-Beale conjugate gradient backpropagation. Fletcher-Powell conjugate gradient backpropagation. Polak-Ribiere conjugate gradient backpropagation. Gradient descent backpropagation. Gradient descent with adaptive lr backpropagation. Gradient descent with momentum backpropagation. Gradient descent with momentum & adaptive lr backprop. Levenberg-Marquardt backpropagation. One step secant backpropagation. Random order incremental update. Resilient backpropagation (Rprop). Sequential order incremental update. Scaled conjugate gradient backpropagation.

purelin radbas satlin satlins softmax tansig tribas

Utility Functions
calca calca1 calce calce1 calcgx calcjejj calcjx calcpd calcperf Calculate network outputs and other signals. Calculate network signals for one time step. Calculate layer errors. Calculate layer errors for one time step. Calc. weight and bias perform. gradient as a single vector. Calculate Jacobian performance vector. Calculate weight and bias performance Jacobian as a single matrix. Calculate delayed network inputs. Calculation network outputs, signals, and performance. Form bias and weights into single vector. Get all network weight and bias values as a single vector. Set all network weight and bias values with a single vector.

Pre and Post Processing Functions


postmnmx Unnormalize data which has been norm. by

traingdx trainlm trainoss trainr trainrp trains trainscg

prenmmx.
postreg poststd Postprocess network response w. linear regression analysis. Unnormalize data which has been normalized by

prestd.
premnmx prepca prestd tramnmx trapca Normalize data for maximum of 1 and minimum of 1. Principal component analysis on input data. Normalize data for unity standard deviation and zero mean. Transform data with precalculated minimum and max. Transform data with PCA matrix computed by

Transfer Derivative Functions


dhardlim dhardlms dlogsig dposlin dpurelin dradbas dsatlin dsatlins Hard limit transfer derivative function. Symmetric hard limit transfer derivative function. Log sigmoid transfer derivative function. Positive linear transfer derivative funct ion. Linear transfer derivative function. Radial basis transfer derivative function. Saturating linear transfer derivative function. Symmetric saturating linear transfer derivative function.

formx getx setx

prepca.
trastd Transform data with precalc. mean & standard deviation.

Vector Functions
cell2mat combvec Combine a cell array of matrices into one matrix. Create all combinations of vectors.

con2seq concur ind2vec mat2cell minmax normc normr pnormc quant seq2con sumsqr vec2ind

Converts concurrent vectors to sequential vectors. Create concurrent bias vectors. Convert indices to vectors. Break matrix up into cell array of matrices. Ranges of matrix rows. Normalize columns of matrix. Normalize rows of matrix. Pseudo-normalize columns of matrix. Discretize value as multiples of a quantity. Convert sequential vectors to concurrent vectors. Sum squared elements of matrix. Convert vectors to indices.

compet

Competitive transfer function.

mle normfit normlike poissfit raylfit

Maximum likelihood estimation Parameter estimation for the normal distribution Normal log-likelihood function Parameter estimation for the Poisson distribution Rayleigh parameter estimation Parameter estimation for the uniform distribution Weibull parameter estimation

hardlim

Hard limit transfer function.

hardlims

Symmetric hard limit transfer function

unifit weibfit

logsig

Log sigmoid transfer function.

Cumulative Distribution Functions (cdf)


poslin Positive linear transfer function betacdf binocdf cdf purelin Linear transfer function. chi2cdf expcdf radbas Radial basis transfer function. fcdf gamcdf geocdf satlin Saturating linear transfer function. hygecdf logncdf satlins Symmetric saturating linear transfer function nbincdf ncfcdf nctcdf softmax Softmax transfer function. ncx2cdf normcdf poisscdf tansig Hyperbolic tangent sigmoid transfer function. Triangular basis transfer function. raylcdf tcdf unidcdf unifcdf weibcdf Beta cdf Binomial cdf Parameterized cdf routine Chi-square cdf Exponential cdf F cdf Gamma cdf Geometric cdf Hypergeometric cdf Lognormal cdf Negative binomial cdf Noncentral F cdf Noncentral t cdf Noncentral Chi-square cdf Normal (Gaussian) cdf Poisson cdf Rayleigh cdf Student's t cdf Discrete uniform cdf Continuous uniform cdf Weibull cdf

Weight and Bias Initialization Functions


initcon initzero midpoint randnc randnr rands revert Conscience bias initialization function. Zero weight and bias initialization function. Midpoint weight initialization function. Normalized column weight initialization function. Normalized row weight initialization function. Symmetric random weight/bias initialization function. Change ntwk wts. and biases to prev. initialization values.

Weight Derivative Function


ddotprod Dot product weight derivative function.

Weight Functions dist Euclidean distance weight function. dotprod Dot product weight function.
mandist

tribas

Manhattan distance weight function. Negative distance weight function. Normalized dot product weight function.

Statistics Toolbox Parameter Estimation


betafit betalike binofit expfit gamfit Parameter estimation for the beta distribution Beta log-likelihood function Parameter estimation for the binomial distribution Parameter estimation for the exponential distribution Parameter estimation for the gamma distribution Gamma log-likelihood function

Probability Density Functions (pdf)


betapdf binopdf chi2pdf exppdf fpdf gampdf geopdf Beta pdf Binomial pdf Chi-square pdf Exponential pdf F pdf Gamma pdf Geometric pdf

negdist normprod

Transfer Function

gamlike

hygepdf lognpdf nbinpdf ncfpdf nctpdf ncx2pdf normpdf pdf poisspdf raylpdf tpdf unidpdf unifpdf weibpdf

Hypergeometric pdf Lognormal pdf Negative binomial pdf Noncentral F pdf Noncentral t pdf Noncentral Chi-square pdf Normal (Gaussian) pdf Parameterized pdf routine Poisson pdf Rayleigh pdf Student's t pdf Discrete uniform pdf Continuous uniform pdf Weibull pdf

betarnd binornd chi2rnd exprnd frnd gamrnd geornd hygernd lognrnd mvnrnd mvtrnd nbinrnd ncfrnd nctrnd ncx2rnd normrnd poissrnd random raylrnd trnd unidrnd unifrnd weibrnd

Beta random numbers Binomial random numbers Chi-square random numbers Exponential random numbers F random numbers Gamma random numbers Geometric random numbers Hypergeometric random numbers Lognormal random numbers Multivariate normal random numbers Multivariate t random numbers Negative binomial random numbers Noncentral F random numbers Noncentral t random numbers Noncentral Chi-square random numbers Normal (Gaussian) random numbers Poisson random numbers Parameterized random number routine Rayleigh random numbers Student's t random numbers Discrete uniform random numbers Continuous uniform random numbers Weibull random numbers

poisstat raylstat tstat unidstat unifstat weibstat

Poisson mean and variance Rayleigh mean and variance Student's t mean and variance Discrete uniform mean and variance Continuous uniform mean and variance Weibull mean and variance

Descriptive Statistics
bootstrp corrcoef cov crosstab geomean grpstats harmmean iqr kurtosis mad mean median moment nanmax nanmean nanmedian Bootstrap statistics for any function Correlation coefficients (in MATLAB) Covariance matrix (in MATLAB) Cross tabulation Geometric mean Summary statistics by group Harmonic mean Interquartile range Sample kurtosis Mean absolute deviation Arithmetic average (in MATLAB) 50th percentile (in MATLAB) Central moments of all orders Maximum ignoring missing data Average ignoring missing data Median ignoring missing data Minimum ignoring missing data Standard deviation ignoring missing data Sum ignoring missing data Empirical percentiles of a sample Sample range Sample skewness Standard deviation (in MATLAB) Frequency table Trimmed mean Variance

Inverse Cumulative Distribution Functions


betainv binoinv chi2inv expinv finv gaminv geoinv hygeinv icdf logninv nbininv ncfinv nctinv ncx2inv norminv poissinv raylinv tinv unidinv unifinv weibinv Beta critical values Binomial critical values Chi-square critical values Exponential critical values F critical values Gamma critical values Geometric critical values Hypergeometric critical values Parameterized inverse distribution routine Lognormal critical values Negative binomial critical values Noncentral F critical values Noncentral t critical values Noncentral Chi-square critical values Normal (Gaussian) critical values Poisson critical values Rayleigh critical values Student's t critical values Discrete uniform critical values Continuous uniform critical values Weibull critical values

Moments of Distribution Functions


betastat binostat chi2stat expstat fstat gamstat geostat hygestat lognstat nbinstat ncfstat nctstat ncx2stat normstat Beta mean and variance Binomial mean and variance Chi-square mean and variance Exponential mean and variance F mean and variance Gamma mean and variance Geometric mean and variance Hypergeometric mean and variance Lognormal mean and variance Negative binomial mean and variance Noncentral F mean and variance Noncentral t mean and variance Noncentral Chi-square mean and variance Normal (Gaussian) mean and variance

nanmin nanstd nansum prctile range skewness std tabulate trimmean var

Statistical Plotting
boxplot cdfplot errorbar Box plots Plot of empirical cumulative distribution function Error bar plot

Random Number Generators

fsurfht gline gname gplotmatrix gscatter lsline normplot pareto qqplot rcoplot refcurve refline surfht weibplot

Interactive contour plot of a function Interactive line drawing Interactive point labeling Matrix of scatter plots grouped by a common variable Scatter plot of two variables grouped by a third Add least-squares fit line to plotted data Normal probability plots Pareto charts Quantile-Quantile plots Regression case order plot Reference polynomial Reference line Interactive interpolating contour plot Weibull plotting leverage lscov manova1 manovacluster

Design of Experiments Linear Models


anova1 anova2 anovan aoctool dummyvar friedman glmfit kruskalwallis One-way Analysis of Variance (ANOVA) Two-way Analysis of Variance N-way analysis of variance Interactive tool for analysis of covariance Dummy-variable coding Friedman's test (nonparametric two-way anova) Generalized linear model fitting Kruskal-Wallis test (nonparametric one-way anova) Regression diagnostic Regression given a covariance matrix (in MATLAB) One-way multivariate analysis of variance Draw clusters of group means for manova1 Multiple comparisons of means and other estimates Polynomial prediction with confidence intervals Polynomial fitting (in MATLAB) Polynomial prediction (in MATLAB) Residuals case order plot Multiple linear regression Regression diagnostics Ridge regression Response surface tool Robust regression model fitting Multidimensional response surface visualization (RSM) Stepwise regression GUI Factor settings matrix (X) to design matrix (D) cordexch daugment dcovary ff2n fracfact fullfact hadamard rowexch D-optimal design using coordinate exchange D-optimal augmentation of designs D-optimal design with fixed covariates Two-level full factorial designs Two-level fractional factorial design Mixed level full factorial designs Hadamard designs (in MATLAB) D-optimal design using row exchange

Principal Components Analysis


barttest pcacov pcares princomp Bartlett's test PCA from covariance matrix Residuals from PCA PCA from raw data matrix

Statistical Process Control


capable capaplot ewmaplot histfit normspec schart xbarplot Quality capability indices Plot of process capability Exponentially weighted moving average plot Histogram and normal density curve Plot normal density between limits Time plot of standard deviation Time plot of means

multcompare polyconf polyfit polyval rcoplot regress regstats ridge rstool robustfit rstool stepwise x2fx

Multivariate Statistics
classify mahal manova1 manovacluster Linear Discriminant Analysis Mahalanobis distance One-way multivariate analysis of variance Draw clusters of group means for manova1

Hypothesis Tests
ranksum signrank signtest ttest ttest2 ztest Wilcoxon rank sum test Wilcoxon signed rank test Sign test for paired samples One sample t -test Two sample t -test Z-test

Cluster Analysis
cluster clusterdata cophenet dendrogram inconsistent linkage pdist squareform Create clusters from linkage output Create clusters from a dataset Calculate the cophenetic correlation coefficient Plot a hierarchical tree in a dendrogram graph Calculate the inconsistency values of objects in a cluster hierarchy tree Link objects in a dataset into a hierarchical tree of binary clusters Calculate the pairwise distance between objects in a dataset Reformat output of pdist function from vector to square matrix Normalize a dataset before calculating the distance

Nonlinear Regression
nlinfit nlintool nlparci nlpredci nnls Nonlinear least-squares fitting Prediction graph for nonlinear fits Confidence intervals on parameters Confidence intervals for prediction Nonnegative least squares (in MATLAB)

Distribution Testing
jbtest kstest kstest2 lillietest Jarque-Bera test of normality Kolmogo rov-Smirnov test for one sample Kolmogorov-Smirnov test for two samples Lilliefors test of normality

zscore

Nonparametric Testing
friedman kruskalwallis ranksum signrank signtest Friedman's test (nonparametric two-way anova) Kruskal-Wallis test (nonparametric one-way anova) Wilcoxon rank sum test (independent samples) Wilcoxon sign rank test (paired samples) Sign test (paired samples)

polydata.mat reaction.mat sat.dat

Data for polytool demo Reaction kinetics data ASCII data for tblread example

Database Connection
clearwarnings close database get isconnection isreadonly ping set sql2native Clear warnings for database connection. Close database connection. Connect to database. Get property of database connection. Detect if database connection is valid. Detect if database connection is read-only. Get status information about database connection. Set properties for database connection. Convert JDBC SQL grammar to system's native SQL grammar.

Optimization Toolbox Minimization


fgoalattain fminbnd fmincon Multiobjective goal attainment Scalar nonlinear minimization with bounds Constrained nonlinear minimization Minimax optimization Semi-infinite minimization Linear programming Quadratic programming

File I/O
caseread casewrite tblread tblwrite tdfread Read casenames from a file Write casenames from a string matrix to a file Retrieve tabular data from the file system Write data in tabular form to the file system Read in text and numeric data from tab-delimited file

fminimax fseminf linprog quadprog

fminsearch,fminunc Unconstrained nonlinear minimization

SQL Cursor
close Close cursor. Execute SQL statement and open cursor. Get property of cursor object. Get time allowed for a database SQL query to succeed. Set RowLimit for cursor fetch. exec get querytimeout set

Equation Solving Demonstrations


aoctool disttool glmdemo randtool polytool rsmdemo robustdemo Interactive tool for analysis of covariance Interactive exploration of distribution functions Generalized linear model slide show Interactive random number generation Interactive fitting of polynomial models Interactive process experimentation and analysis Interactive tool to compare robust and least squares fits lsqlin fsolve fzero \ Use \ (left division) to solve linear equations. See the Arithmetic Operators reference page. Nonlinear equation solving Scalar nonlinear equation solving

Least Squares (Curve Fitting)


\ Use \ (left division) for linear least squares with no constraints. See the Arithmetic Operators reference page. Constrained linear least squares Nonlinear curve fitting Nonlinear least squares Nonnegative linear least squares Parameter setting

Importing Data into MATLAB


attr cols columnnames fetch rows width Get attributes of columns in fetched data set. Get number of columns in fetched data set. Get names of columns in fetched data set. Import data into MATLAB cell array. Get number of rows in fetched data set. Get field size of column in fetched data set.

Data
census.mat cities.mat discrim.mat gas.mat hald.mat hogg.mat lawdata.mat mileage.mat moore.mat parts.mat popcorn.mat U. S. Population 1790 to 1980 Names of U.S. metropolitan areas Classification data Gasoline prices Hald data Bacteria counts from milk shipments GPA versus LSAT for 15 law schools Mileage data for three car models from two factories Five factor - one response regression data Dimensional runout on 36 circular parts Data for popcorn example (anova2, friedman)

lsqcurvefit lsqnonlin lsqnonneg optimset,optimget

Exporting Data to a Database Database Toolbox General


logintimeout setdbprefs Set or get time allowed to establish database connection. Set preferences for database actions for handling NULL values. commit insert rollback update Make database changes permanent. Export MATLAB cell array data into database table. Undo database changes. Replace data in database table with data from MATLAB cell array.

Database Metadata Object


bestrowid columnprivileges columns crossreference dmd exportedkeys get importedkeys indexinfo primarykeys procedurecolumns procedures supports tableprivileges tables versioncolumns Get database table unique row identifier. Get database column privileges. Get database table column names. Get information about primary and foreign keys. Construct database metadata object. Get information about exported foreign keys. Get database metadata properties. Get information about imported foreign keys. Get indices and statistics for database table. Get primary key information for database table or schema. Get catalog's stored procedure parameters and result columns. Get catalog's stored procedures. Detect if property is supported by database metadata object. Get database table privileges. Get database table names. Get automatically updated table columns.

clearwarnings close get isnullcolumn

Clear the warnings for the resultset. Close resultset object. Get resultset properties. Detect if last record read in resultset was

NULL.
namecolumn Map resultset column name to resultset column index.

Resultset Metadata Object


get rsmd Get resultset metadata properties. Construct resultset metadata object.

Visual Query Builder


confds querybuilder Configure data source for use with Visual Query Builder (JDBC only). Start visual SQL query builder.

Driver Object
driver get isdriver isjdbc isurl register unregister Construct database driver object. Get database driver properties. Detect if driver is a valid JDBC driver object. Detect if driver is JDBC-compliant. Detect if the database URL is valid. Load database driver. Unload database driver.

Drivermanager Object
drivermanager get set Construct database drivermanager object. Get database drivermanager properties. Set database drivermanager properties.

Resultset Object

You might also like