Matlab Toolbox Quickref
Matlab Toolbox Quickref
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.
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.
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
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.
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.)
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
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
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
wiener2
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
convmtx2 convn
filter2
ntsc2rgb rgb2hsv
fspecial
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.)
Toolbox Preferences
iptgetpref iptsetpref Get value of Image Processing Toolbox preference Set value of Image Processing Toolbox preference
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
Slide Shows
ipss001 ipss002 ipss003 Region labeling of steel grains Feature-based logic Correction of nonuniform illumination
learnsom learnwh
Distance Functions
boxdist dist linkdist mandist Distance between two position vectors. Euclidean distance weight function. Link distance function. Manhattan distance weight function.
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.
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.
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.
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
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
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
hardlims
unifit weibfit
logsig
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.
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
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
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
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
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)
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.
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
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
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)
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.
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