Documentation Center

  • Trial Software
  • Product Updates

Functions in Signal Processing Toolbox

  • By Category | Alphabetical List
  • Waveforms

    Signal Generation

    buffer Buffer signal vector into matrix of data frames
    chirp Swept-frequency cosine
    demod Demodulation for communications simulation
    diric Dirichlet or periodic sinc function
    gauspuls Gaussian-modulated sinusoidal pulse
    gmonopuls Gaussian monopulse
    modulate Modulation for communications simulation
    pulstran Pulse train
    rectpuls Sampled aperiodic rectangle
    sawtooth Sawtooth or triangle wave
    seqperiod Compute period of sequence
    sinc Sinc function
    sptool Open interactive digital signal processing tool
    square Square wave
    tripuls Sampled aperiodic triangle
    vco Voltage controlled oscillator
    shiftdata Shift data to operate on specified dimension
    unshiftdata Inverse of shiftdata
    strips Strip plot
    udecode Decode 2n-level quantized integer inputs to floating-point outputs
    uencode Quantize and encode floating-point inputs to integer outputs

    Signal Measurement

    midcross Mid-reference level crossing for bilevel waveform
    pulseperiod Period of bilevel pulse
    pulsesep Separation between bilevel waveform pulses
    pulsewidth Bilevel waveform pulse width
    settlingtime Settling time for bilevel waveform
    statelevels State-level estimation for bilevel waveform with histogram method
    falltime Fall time of negative-going bilevel waveform transitions
    risetime Rise time of positive-going bilevel waveform transitions
    slewrate Slew rate of bilevel waveform
    overshoot Overshoot metrics of bilevel waveform transitions
    undershoot Undershoot metrics of bilevel waveform transitions
    dutycycle Duty cycle of pulse waveform
    peak2peak Maximum-to-minimum difference
    peak2rms Peak-magnitude-to-RMS ratio
    rms Root-mean-square level
    rssq Root-sum-of-squares level
    bandpower Band power
    enbw Equivalent noise bandwidth
    sfdr Spurious free dynamic range
    sinad Signal to noise and distortion ratio
    snr Signal-to-noise ratio
    thd Total harmonic distortion
    toi Third-order intercept point
    marcumq Generalized Marcum Q function

    Convolution and Correlation

    cconv Modulo-N circular convolution
    conv Convolution and polynomial multiplication
    convmtx Convolution matrix
    corrmtx Data matrix for autocorrelation matrix estimation
    xcorr Cross-correlation
    xcorr2 2-D cross-correlation
    xcov Cross-covariance

    Transforms

    bitrevorder Permute data into bit-reversed order
    cceps Complex cepstral analysis
    czt Chirp z-transform
    dct Discrete cosine transform (DCT)
    digitrevorder Permute input into digit-reversed order
    dftmtx Discrete Fourier transform matrix
    fft Fast Fourier transform
    fwht Fast Walsh–Hadamard transform
    goertzel Discrete Fourier transform with second-order Goertzel algorithm
    hilbert Discrete-time analytic signal using Hilbert transform
    icceps Inverse complex cepstrum
    idct Inverse discrete cosine transform
    ifwht Inverse Fast Walsh–Hadamard transform
    rceps Real cepstrum and minimum phase reconstruction

    Analog and Digital Filters

    Analog Filters

    bilinear Bilinear transformation method for analog-to-digital filter conversion
    besselap Bessel analog lowpass filter prototype
    besself Bessel analog filter design
    buttap Butterworth filter prototype
    butter Butterworth filter design
    cheb1ap Chebyshev Type I analog lowpass filter prototype
    cheb2ap Chebyshev Type II analog lowpass filter prototype
    cheby1 Chebyshev Type I filter design (passband ripple)
    cheby2 Chebyshev Type II filter design (stopband ripple)
    ellip Elliptic filter design
    ellipap Elliptic analog lowpass filter prototype
    freqs Frequency response of analog filters
    lp2bp Transform lowpass analog filters to bandpass
    lp2bs Transform lowpass analog filters to bandstop
    lp2hp Transform lowpass analog filters to highpass
    lp2lp Change cutoff frequency for lowpass analog filter

    Digital Filter Design

    designfilt Design digital filters
    digitalFilter Digital filter
    butter Butterworth filter design
    buttord Butterworth filter order and cutoff frequency
    cheby1 Chebyshev Type I filter design (passband ripple)
    cheb1ord Chebyshev Type I filter order
    cheby2 Chebyshev Type II filter design (stopband ripple)
    cheb2ord Chebyshev Type II filter order
    ellip Elliptic filter design
    ellipord Minimum order for elliptic filters
    polyscale Scale roots of polynomial
    polystab Stabilize polynomial
    impinvar Impulse invariance method for analog-to-digital filter conversion
    yulewalk Recursive digital filter design
    cfirpm Complex and nonlinear-phase equiripple FIR filter design
    fir1 Window-based finite impulse response filter design
    fir2 Frequency sampling-based finite impulse response filter design
    fircls Constrained least square, FIR multiband filter design
    fircls1 Constrained least square, lowpass and highpass, linear phase, FIR filter design
    firls Least square linear-phase FIR filter design
    firpm Parks-McClellan optimal FIR filter design
    firpmord Parks-McClellan optimal FIR filter order estimation
    gaussdesign Gaussian FIR pulse-shaping filter design
    intfilt Interpolation FIR filter design
    kaiserord Kaiser window FIR filter design estimation parameters
    maxflat Generalized digital Butterworth filter design
    rcosdesign Raised cosine FIR pulse-shaping filter design
    sgolay Savitzky-Golay filter design
    fdatool Open Filter Design and Analysis Tool
    fvtool Open Filter Visualization Tool
    sptool Open interactive digital signal processing tool

    Digital Filter Analysis

    angle Phase angle
    fdatool Open Filter Design and Analysis Tool
    filternorm 2-norm or infinity-norm of digital filter
    filtord Filter order
    firtype Type of linear phase FIR filter
    freqz Frequency response of digital filter
    fvtool Open Filter Visualization Tool
    grpdelay Average filter delay (group delay)
    impz Impulse response of digital filter
    impzlength Impulse response length
    info Information about digital filter
    phasedelay Phase delay of digital filter
    phasez Phase response of digital filter
    residuez z-transform partial-fraction expansion
    stepz Step response of digital filter
    zerophase Zero-phase response of digital filter
    zplane Zero-pole plot
    isallpass Determine whether filter is allpass
    isfir Determine if digital filter has finite impulse response
    islinphase Determine whether filter has linear phase
    isminphase Determine whether filter is minimum phase
    ismaxphase Determine whether filter is maximum phase
    isstable Determine whether filter is stable

    Digital Filter Implementation

    cell2sos Convert second-order sections cell array to matrix
    dspfwiz Open FDATool Realize Model panel to create Simulink filter block
    latc2tf Convert lattice filter parameters to transfer function form
    tf2latc Convert transfer function filter parameters to lattice filter form
    residuez z-transform partial-fraction expansion
    sos2cell Convert second-order sections matrix to cell array
    sos2ss Convert digital filter second-order section parameters to state-space form
    sos2tf Convert digital filter second-order section data to transfer function form
    sos2zp Convert digital filter second-order section parameters to zero-pole-gain form
    ss Convert digital filter to state-space representation
    ss2sos Convert digital filter state-space parameters to second-order sections form
    ss2tf Convert state-space filter parameters to transfer function form
    ss2zp Convert state-space filter parameters to zero-pole-gain form
    tf Convert digital filter to transfer function
    tf2sos Convert digital filter transfer function data to second-order sections form
    tf2ss Convert transfer function filter parameters to state-space form
    tf2zp Convert transfer function filter parameters to zero-pole-gain form
    tf2zpk Convert transfer function filter parameters to zero-pole-gain form
    zp2sos Convert zero-pole-gain filter parameters to second-order sections form
    zp2ss Convert zero-pole-gain filter parameters to state-space form
    zp2tf Convert zero-pole-gain filter parameters to transfer function form
    zpk Convert digital filter to zero-pole-gain representation
    fftfilt FFT-based FIR filtering using overlap-add method
    filter Filter data with recursive (IIR) or nonrecursive (FIR) filter
    filtfilt Zero-phase digital filtering
    filtic Initial conditions for transposed direct-form II filter implementation
    filt2block Generate Simulink filter block
    latcfilt Lattice and lattice-ladder filter implementation
    medfilt1 1-D median filtering
    sgolayfilt Savitzky-Golay filtering
    sosfilt Second-order (biquadratic) IIR digital filtering

    Spectral Analysis

    Nonparametric Methods

    bandpower Band power
    cpsd Cross power spectral density
    db Convert energy or power measurements to decibels
    db2mag Convert decibels (dB) to magnitude
    db2pow Convert decibels (dB) to power
    findpeaks Find local maxima
    mag2db Convert magnitude to decibels (dB)
    mscohere Magnitude squared coherence
    periodogram Periodogram power spectral density estimate
    pmtm Multitaper power spectral density estimate
    pow2db Convert power to decibels (dB)
    pwelch Welch's power spectral density estimate
    sinad Signal to noise and distortion ratio
    snr Signal-to-noise ratio
    spectrogram Spectrogram using short-time Fourier transform
    sptool Open interactive digital signal processing tool
    tfestimate Transfer function estimate
    thd Total harmonic distortion
    toi Third-order intercept point

    Parametric Methods

    db Convert energy or power measurements to decibels
    db2mag Convert decibels (dB) to magnitude
    db2pow Convert decibels (dB) to power
    findpeaks Find local maxima
    mag2db Convert magnitude to decibels (dB)
    pburg Autoregressive power spectral density estimate — Burg's method
    pcov Autoregressive power spectral density estimate — covariance method
    pow2db Convert power to decibels (dB)
    pmcov Autoregressive power spectral density estimate — modified covariance method
    pyulear Autoregressive power spectral density estimate — Yule-Walker method
    sptool Open interactive digital signal processing tool

    Subspace Methods

    peig Pseudospectrum using eigenvector method
    pmusic Pseudospectrum using MUSIC algorithm
    rooteig Frequency and power content using eigenvector method
    rootmusic Root MUSIC algorithm

    Windows

    bartlett Bartlett window
    bohmanwin Bohman window
    chebwin Chebyshev window
    dpss Discrete prolate spheroidal (Slepian) sequences
    dpssclear Remove discrete prolate spheroidal sequences from database
    dpssdir Discrete prolate spheroidal sequences database directory
    dpssload Load discrete prolate spheroidal sequences from database
    enbw Equivalent noise bandwidth
    gausswin Gaussian window
    kaiser Kaiser window
    parzenwin Parzen (de la Vallée-Poussin) window
    rectwin Rectangular window
    taylorwin Taylor window
    triang Triangular window
    tukeywin Tukey (tapered cosine) window
    barthannwin Modified Bartlett-Hann window
    blackmanharris Minimum 4-term Blackman-Harris window
    blackman Blackman window
    hamming Hamming window
    hann Hann (Hanning) window
    flattopwin Flat top weighted window
    nuttallwin Nuttall-defined minimum 4-term Blackman-Harris window
    window Window function gateway
    wintool Open Window Design and Analysis Tool
    wvtool Open Window Visualization Tool

    Parametric Modeling and Linear Prediction

    Parametric Modeling

    arburg Autoregressive (AR) all-pole model parameters estimated using Burg method
    arcov Estimate AR model parameters using covariance method
    armcov Estimate AR model parameters using modified covariance method
    aryule Estimate autoregressive (AR) all-pole model using Yule-Walker method
    invfreqs Identify continuous-time filter parameters from frequency response data
    invfreqz Identify discrete-time filter parameters from frequency response data
    prony Prony method for filter design
    stmcb Compute linear model using Steiglitz-McBride iteration

    Linear Predictive Coding

    corrmtx Data matrix for autocorrelation matrix estimation
    ac2poly Convert autocorrelation sequence to prediction polynomial
    ac2rc Convert autocorrelation sequence to reflection coefficients
    is2rc Convert inverse sine parameters to reflection coefficients
    lar2rc Convert log area ratio parameters to reflection coefficients
    levinson Levinson-Durbin recursion
    lpc Linear prediction filter coefficients
    lsf2poly Convert line spectral frequencies to prediction filter coefficients
    poly2ac Convert prediction filter polynomial to autocorrelation sequence
    poly2lsf Convert prediction filter coefficients to line spectral frequencies
    polyscale Scale roots of polynomial
    poly2rc Convert prediction filter polynomial to reflection coefficients
    rc2ac Convert reflection coefficients to autocorrelation sequence
    rc2is Convert reflection coefficients to inverse sine parameters
    rc2lar Convert reflection coefficients to log area ratio parameters
    rc2poly Convert reflection coefficients to prediction filter polynomial
    rlevinson Reverse Levinson-Durbin recursion
    schurrc Compute reflection coefficients from autocorrelation sequence
    xcorr Cross-correlation
    xcov Cross-covariance

    Multirate Signal Processing

    decimate Decimation — decrease sampling rate
    downsample Decrease sampling rate by integer factor
    interp Interpolation — increase sampling rate by integer factor
    resample Change sampling rate by rational factor
    upfirdn Upsample, apply FIR filter, and downsample
    upsample Increase sampling rate by integer factor
    Was this topic helpful?