# Documentation

### This is machine translation

Translated by
Mouse over text to see original. Click the button below to return to the English verison of the page.

# DSP System Toolbox Blocks

 Allpass Filter Single-section or multiple-section allpass filter Allpole Filter Model allpole filters Analog Filter Design Design and implement analog filters Analytic Signal Compute analytic signals of discrete-time inputs Arbitrary Response Filter Design arbitrary response filter Array Plot Display vectors or arrays Array-Vector Add Add vector to array along specified dimension Array-Vector Divide Divide array by vector along specified dimension Array-Vector Multiply Multiply array by vector along specified dimension Array-Vector Subtract Subtract vector from array along specified dimension Audio Device Writer Play to sound card Audio Weighting Filter Design audio weighting filter Autocorrelation Autocorrelation of vector or matrix input Autocorrelation LPC Determine coefficients of Nth-order forward linear predictors
 Backward Substitution Solve UX=B for X when U is upper triangular matrix Bandpass Filter Design bandpass filter Bandstop Filter Design bandstop filter Binary File Reader Read data from binary files Binary File Writer Write data to binary files Biquad Filter Model biquadratic IIR (SOS) filters Block LMS Filter Compute output, error, and weights using LMS adaptive algorithm Buffer Buffer input sequence to smaller or larger frame size Burg AR Estimator Compute estimate of autoregressive (AR) model parameters using Burg method Burg Method Power spectral density estimate using Burg method
 Check Signal Attributes Error when input signal does or does not match selected attributes exactly Chirp Generate swept-frequency cosine (chirp) signal Cholesky Factorization Factor square Hermitian positive definite matrix into triangular components Cholesky Inverse Compute inverse of Hermitian positive definite matrix using Cholesky factorization Cholesky Solver Solve SX=B for X when S is square Hermitian positive definite matrix CIC Compensation Decimator Compensate for CIC filter using FIR decimator CIC Compensation Interpolator Compensate for CIC filter using FIR interpolator CIC Decimation Decimate signal using Cascaded Integrator-Comb filter CIC Filter Design Cascaded Integrator-Comb (CIC) Filter CIC Interpolation Interpolate signal using Cascaded Integrator-Comb filter Colored Noise Generate colored noise signal Comb Filter Design comb Filter Complex Cepstrum Compute complex cepstrum of input Complex to Magnitude-Angle HDL Optimized Compute magnitude and/or phase angle of complex signal—optimized for HDL code generation using the CORDIC algorithm Constant Generate constant value Constant Ramp Generate ramp signal with length based on input dimensions Convert 1-D to 2-D Reshape 1-D or 2-D input to 2-D matrix with specified dimensions Convert 2-D to 1-D Convert 2-D matrix input to 1-D vector Convolution Convolution of two inputs Correlation Cross-correlation of two inputs Counter Count up or down through specified range of numbers Covariance AR Estimator Compute estimate of autoregressive (AR) model parameters using covariance method Covariance Method Power spectral density estimate using covariance method Create Diagonal Matrix Create square diagonal matrix from diagonal elements Cross-Spectrum Estimator Estimate cross-power spectrum density Cumulative Product Cumulative product of channel, column, or row elements Cumulative Sum Cumulative sum of channel, column, or row elements
 Data Type Conversion Convert input signal to specified data type dB Conversion Convert magnitude data to decibels (dB or dBm) dB Gain Apply decibel gain DC Blocker Block DC component DCT Discrete cosine transform (DCT) of input Delay Line Rebuffer sequence of inputs Detrend Remove linear trend from vectors Difference Compute element-to-element difference along specified dimension of input Differentiator Filter Direct form FIR fullband differentiator filter Digital Down-Converter Translate digital signal from Intermediate Frequency (IF) band to baseband and decimate it Digital Filter Design Design and implement digital FIR and IIR filters Digital Up-Converter Interpolate digital signal and translate it from baseband to Intermediate Frequency (IF) band Discrete Filter Model Infinite Impulse Response (IIR) filters Discrete FIR Filter Model FIR filters Discrete FIR Filter Model FIR filters Discrete Impulse Generate discrete impulse Discrete Transfer Function Estimator Compute estimate of frequency-domain transfer function of system Downsample Resample input at lower rate by deleting samples DWT Discrete wavelet transform (DWT) of input or decompose signals into subbands with smaller bandwidths and slower sample rates Dyadic Analysis Filter Bank Decompose signals into subbands with smaller bandwidths and slower sample rates or compute discrete wavelet transform (DWT) Dyadic Synthesis Filter Bank Reconstruct signals from subbands with smaller bandwidths and slower sample rates or compute inverse discrete wavelet transform (IDWT)
 Edge Detector Detect transition from zero to nonzero value Event-Count Comparator Detect threshold crossing of accumulated nonzero inputs Extract Diagonal Extract main diagonal of input matrix Extract Triangular Matrix Extract lower or upper triangle from input matrices
 Farrow Rate Converter Polynomial sample-rate converter with arbitrary conversion factor Fast Block LMS Filter Compute output, error, and weights using LMS adaptive algorithm FFT Fast Fourier transform (FFT) of input FFT HDL Optimized Fast Fourier transform—optimized for HDL code generation Filter Realization Wizard Construct filter realizations using digital filter blocks or Sum, Gain, and Delay blocks FIR Decimation Filter and downsample input signals FIR Halfband Decimator Decimate signal using polyphase FIR halfband filter FIR Halfband Interpolator Interpolate signal using polyphase FIR half band filter FIR Interpolation Upsample and filter input signals FIR Rate Conversion Upsample, filter, and downsample input signals FIR Rate Conversion HDL Optimized Upsample, filter, and downsample input signals—optimized for HDL code generation Flip Flip input vertically or horizontally Forward Substitution Solve LX=B for X when L is lower triangular matrix Frame Conversion Specify sampling mode of output signal From Audio Device Read audio data from computer's audio device From Multimedia File Stream from multimedia file
 G711 Codec Quantize narrowband speech input signals
 Halfband Filter Design halfband filter HDL Minimum Resource FFT FFT— optimized for HDL code generation using minimum hardware resources HDL Streaming FFT Radix-2 FFT with decimation-in-frequency (DIF) — optimized for HDL code generation Highpass Filter Design FIR or IIR highpass filter Hilbert Filter Design Hilbert filter Histogram Generate histogram of input or sequence of inputs
 IDCT Inverse discrete cosine transform (IDCT) of input Identity Matrix Generate matrix with ones on main diagonal and zeros elsewhere IDWT Inverse discrete wavelet transform (IDWT) of input or reconstruct signals from subbands with smaller bandwidths and slower sample rates IFFT Inverse fast Fourier transform (IFFT) of input IFFT HDL Optimized Inverse fast Fourier transform—optimized for HDL code generation IIR Halfband Decimator Decimate signal using polyphase IIR halfband filter IIR Halfband Interpolator Interpolate signal using polyphase IIR halfband filter Inherit Complexity Change complexity of input to match reference signal Interpolation Interpolate values of real input samples Inverse Short-Time FFT Recover time-domain signals by performing inverse short-time, fast Fourier transform (FFT) Inverse Sinc Filter Design inverse sinc filter
 Kalman Filter Predict or estimate states of dynamic systems
 LDL Factorization Factor square Hermitian positive definite matrices into lower, upper, and diagonal components LDL Inverse Compute inverse of Hermitian positive definite matrix using LDL factorization LDL Solver Solve SX=B for X when S is square Hermitian positive definite matrix Least Squares Polynomial Fit Compute polynomial coefficients that best fit input data in least-squares sense Levinson-Durbin Solve linear system of equations using Levinson-Durbin recursion LMS Filter Compute output, error, and weights using LMS adaptive algorithm LMS Update Estimate weights of LMS adaptive filter Lowpass Filter Design FIR or IIR lowpass filter LPC to LSF/LSP Conversion Convert linear prediction coefficients to line spectral pairs or line spectral frequencies LPC to/from Cepstral Coefficients Convert linear prediction coefficients to cepstral coefficients or cepstral coefficients to linear prediction coefficients LPC to/from RC Convert linear prediction coefficients to reflection coefficients or reflection coefficients to linear prediction coefficients LPC/RC to Autocorrelation Convert linear prediction coefficients or reflection coefficients to autocorrelation coefficients LSF/LSP to LPC Conversion Convert line spectral frequencies or line spectral pairs to linear prediction coefficients LU Factorization Factor square matrix into lower and upper triangular components LU Inverse Compute inverse of square matrix using LU factorization LU Solver Solve AX=B for X when A is square matrix
 Magnitude FFT Compute nonparametric estimate of spectrum using periodogram method Matrix 1-Norm Compute 1-norm of matrix Matrix Concatenate Concatenate input signals of same data type to create contiguous output signal Matrix Exponential Compute matrix exponential Matrix Multiply Multiply or divide inputs Matrix Product Multiply matrix elements along rows, columns, or entire input Matrix Square Compute square of input matrix Matrix Sum Sum matrix elements along rows, columns, or entire input Matrix Viewer Display matrices as color images Maximum Find maximum values in input or sequence of inputs Mean Find mean value of input or sequence of inputs Median Find median value of input Median Filter Median filter MIDI Controls Output values from controls on MIDI control surface Minimum Find minimum values in input or sequence of inputs Modified Covariance AR Estimator Compute estimate of autoregressive (AR) model parameters using modified covariance method Modified Covariance Method Power spectral density estimate using modified covariance method Moving Average Moving average Moving Maximum Moving maximum Moving Minimum Moving minimum Moving RMS Moving RMS Moving Standard Deviation Moving standard deviation Moving Variance Moving variance Multiphase Clock Generate multiple binary clock signals Multiport Selector Distribute arbitrary subsets of input rows or columns to multiple output ports
 N-Sample Enable Output ones or zeros for specified number of sample times N-Sample Switch Switch between two inputs after specified number of sample periods NCO Generate real or complex sinusoidal signals NCO HDL Optimized Generate real or complex sinusoidal signals—optimized for HDL code generation Normalization Perform vector normalization along rows, columns, or specified dimension Notch-Peak Filter Design second-order tunable notching and peaking IIR filter Nyquist Filter Design Nyquist filter
 Octave Filter Design octave filter Offset Truncate vectors by removing or keeping beginning or ending values Overlap-Add FFT Filter Implement overlap-add method of frequency-domain filtering Overlap-Save FFT Filter Implement overlap-save method of frequency-domain filtering Overwrite Values Overwrite submatrix or subdiagonal of input
 Pad Pad or truncate specified dimension(s) Parametric EQ Filter Model second-order parametric equalizer filter Peak Finder Determine whether each value of input signal is local minimum or maximum Periodogram Power spectral density or mean-square spectrum estimate using periodogram method Permute Matrix Reorder matrix rows or columns Phase Extractor Extract the unwrapped phase of a complex input Polynomial Evaluation Evaluate polynomial expression Polynomial Stability Test Use Schur-Cohn algorithm to determine whether all roots of input polynomial are inside unit circle Pseudoinverse Compute Moore-Penrose pseudoinverse of matrix
 QR Factorization Factor arbitrary matrix into unitary and upper triangular components QR Solver Find minimum-norm-residual solution to AX=B Quantizer Discretize input at specified interval Queue Store inputs in FIFO register
 Random Source Generate randomly distributed values Real Cepstrum Compute real cepstrum of input Reciprocal Condition Compute reciprocal condition of square matrix in 1-norm Repeat Resample input at higher rate by repeating values RLS Filter Compute filtered output, filter error, and filter weights for given input and desired signal using RLS adaptive filter algorithm RMS Compute root-mean-square value of input or sequence of inputs
 Sample and Hold Sample and hold input signal Sample-Rate Converter Multistage sample-rate conversion Scalar Quantizer Decoder Convert each index value into quantized output value Scalar Quantizer Design Start Scalar Quantizer Design Tool (SQDTool) to design scalar quantizer using Lloyd algorithm Scalar Quantizer Encoder Encode each input value by associating it with index value of quantization region Selector Select input elements from vector, matrix, or multidimensional signal Short-Time FFT Nonparametric estimate of spectrum using short-time, fast Fourier transform (FFT) method Signal From Workspace Import signal from MATLAB workspace Sine Wave Generate continuous or discrete sine wave Singular Value Decomposition Factor matrix using singular value decomposition Sort Sort input elements by value Spectrum Analyzer Display frequency spectrum of time-domain signals Spectrum Estimator Estimate power spectrum or power-density spectrum Stack Store inputs into LIFO register Standard Deviation Find standard deviation of input or sequence of inputs Submatrix Select subset of elements (submatrix) from matrix input SVD Solver Solve AX=B using singular value decomposition
 Time Scope Display time-domain signals To Audio Device Write audio data to computer's audio device To Multimedia File Stream video frames and audio samples to multimedia file To Workspace Write data to MATLAB workspace Toeplitz Generate matrix with Toeplitz symmetry Triggered Signal From Workspace Import signal samples from MATLAB workspace when triggered Triggered To Workspace Write input sample to MATLAB workspace when triggered Two-Channel Analysis Subband Filter Decompose signal into high-frequency and low-frequency subbands Two-Channel Synthesis Subband Filter Reconstruct signal from high-frequency and low-frequency subbands
 UDP Receive Receive uint8 vector as UDP message UDP Send Send UDP message Unbuffer Unbuffer input frame into sequence of scalar outputs Uniform Decoder Decode integer input into floating-point output Uniform Encoder Quantize and encode floating-point input into integer output Unwrap Unwrap signal phase Upsample Resample input at higher rate by inserting zeros
 Variable Bandwidth FIR Filter Design tunable bandwidth FIR filter Variable Bandwidth IIR Filter Design tunable bandwidth IIR filter Variable Fractional Delay Delay input by time-varying fractional number of sample periods Variable Integer Delay Delay input by time-varying integer number of sample periods Variable Selector Select subset of rows or columns from input Variance Compute variance of input or sequence of inputs Vector Quantizer Decoder Find vector quantizer codeword that corresponds to given, zero-based index value Vector Quantizer Design Design vector quantizer using Vector Quantizer Design Tool (VQDTool) Vector Quantizer Encoder For given input, find index of nearest codeword based on Euclidean or weighted Euclidean distance measure Vector Scope Display vector or matrix of time-domain, frequency-domain, or user-defined data
 Waterfall View vectors of data over time Window Function Compute and/or apply window to input signal
 Yule-Walker AR Estimator Compute estimate of autoregressive (AR) model parameters using Yule-Walker method Yule-Walker Method Power spectral density estimate using Yule-Walker method
 Zero Crossing Count number of times signal crosses zero in single time step