List ofSignal Processing ToolboxFunctions that Support Code Generation

Code generation from MATLAB®is a restricted subset of the MATLAB language that provides optimizations for:

  • 生成高效,生产质量C / C ++代码和MEX文件,用于部署桌面和嵌入式应用程序。对于嵌入式目标,子集限制了MATLAB语义,以满足目标环境的内存和数据类型要求。

Depending on which feature you wish to use, there are additional required products. For a comprehensive list, seeInstalling Prerequisite Products(MATLAB Coder).

Code generation from MATLAB supports Signal Processing Toolbox™ functions listed in the table. To generate C code, you must have theMATLAB Coder™software. If you have the Fixed-Point Designer™ software, you can usefiaccelto generate MEX code for fixed-point applications.

To follow the examples in this documentation:

  • To generate C/C++ code and MEX files withcodegen, install theMATLAB Codersoftware, the Signal Processing Toolbox, and a C compiler. For the Windows®platform, MATLAB supplies a default C compiler. Runmex-setup.at the MATLAB command prompt to set up the C compiler.

  • Change to a folder where you have write permission.

An asterisk (*) indicates that the reference page has usage notes and limitations for C/C++ code generation.

abs

Absolute value and complex magnitude

alplensignals.

Align two signals by delaying earliest signal

angle

Phase angle

bandpower*

Band power

巴尔南文

Modified Bartlett-Hann window

巴特利特

Bartlett window

besselap*

贝塞尔模拟低通滤波器原型

bilinear

Bilinear transformation method for analog-to-digital filter conversion

bitrevorder

Permute data into bit-reversed order

blackman

Blackman window

黑人哈里斯

Minimum four-term Blackman-Harris window

bohmanwin

Bohman window

buttap

Butterworth filter prototype

黄油

Butterworth滤镜设计

buttord*

Butterworth filter order and cutoff frequency

cceps

Complex cepstral analysis

CCONV.

Modulo-n circular convolution

cfirpm*

复杂和非线性相位平均灭菌滤波器设计

cheb1ap*

Chebyshev Type I analog lowpass filter prototype

cheb1ord*

Chebyshev Type I filter order

cheb2ap*

Chebyshev Type II analog lowpass filter prototype

cheb2ord*

Chebyshev Type II filter order

chebwin

Chebyshev window

cheby1*

Chebyshev Type I filter design

cheby2*

Chebyshev Type II filter design

chirp

Swept-frequency cosine

conv*

Convolution and polynomial multiplication

conv2

2-D卷积

convmtx

Convolution matrix

Corlcoef.*

Correlation coefficients

corrmtx

Data matrix for autocorrelation matrix estimation

cov*

Covariance

cpsd

Cross power spectral density

cummax

Cumulative maximum

cummin

Cumulative minimum

czt*

Chirp Z-Transform

db2pow

Convert decibels to power

DCT.*

Discrete cosine transform

Deconv.*

Deconvolution and polynomial division

detrend*

Remove polynomial trend

dftmtx

Discrete Fourier transform matrix

dir

Dirichlet or periodic sinc function

downsample

Decrease sample rate by integer factor

DPSS.*

Discrete prolate spheroidal (Slepian) sequences

dtw

使用动态时间翘曲信号之间的距离

ellip*

椭圆滤波器设计

ellipap*

Elliptic analog lowpass filter prototype

ellipord*

Minimum order for elliptic filters

emd

Empirical mode decomposition

enbw

Equivalent noise bandwidth

envelope*

Signal envelope

envspectrum*

用于机械诊断的信封谱

eqtflength.

均衡传输函数的分子和分母的长度

FFT.*

Fast Fourier transform

FFT.2*

2-D fast Fourier transform

FFTFILT.*

FFT-based FIR filtering using overlap-add method

FFT.shift

Shift zero-frequency component to center of spectrum

filloutliers*

Detect and replace outliers in data

筛选*

1-D digital filter

筛选2

2-D digital filter

filtfilt*

Zero-phase digital filtering

filtord

Filter order

finddelay

Estimate delay(s) between signals

findpeaks.

Find local maxima

fir1

Window-based FIR filter design

fir2*

Frequency sampling-based FIR filter design

fircls*

Constrained-least-squares FIR multiband filter design

fircls1*

Constrained-least-squares linear-phase FIR lowpass and highpass filter design

firls

Least-squares linear-phase FIR filter design

FILPM.*

Parks-McClellan optimal FIR filter design

FILPM.ord*

Parks-McClellan最佳FIR滤波器订购估算

flattopwin

Flat top weighted window

freqspace

频率响应频率间距

freqz*

Frequency response of digital filter

FSST.*

Fourier synchrosqueezed transform

fwht

Fast Walsh-Hadamard transform

gauspuls

Gaussian-modulated sinusoidal RF pulse

gausswin

高斯窗口

gmonopuls

Gaussian monopulse

goertzel*

Discrete Fourier transform with second-order Goertzel algorithm

hamming

Hamming window

hann

Hann (Hanning) window

HHT.*

Hilbert-Huang transform

hilbert

Discrete-time analytic signal using Hilbert transform

icceps

Inverse complex cepstrum

idct*

Inverse discrete cosine transform

ifft*

Inverse fast Fourier transform

ifft2*

2-D inverse fast Fourier transform

ifftshift

Inverse zero-frequency shift

ifsst

Inverse Fourier synchrosqueezed transform

ifwht

Inverse Fast Walsh-Hadamard transform

interp1*

1-D data interpolation (table lookup)

intfilt*

Interpolation FIR filter design

iscola

Determine whether window-overlap combination is COLA compliant

isoutlier*

查找数据中的异常值

istft*

Inverse short-time Fourier transform

kaiser

Kaiser window

kaiserord

Kaiser window FIR filter design estimation parameters

kurtogram*

Visualize spectral kurtosis

莱文顿*

Levinson-Durbin recursion

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

lsf2poly

Convert line spectral frequencies to prediction filter coefficients

max*

Maximum elements of an array

maxflat*

Generalized digital Butterworth filter design

意思是*

Average or mean value of array

意思是freq

Mean frequency

medfreq

Median frequency

median*

Median value of array

min*

Minimum elements of an array

movmad*

移动中位绝对偏差

movmedian*

Moving median

mscohere

Magnitude-squared coherence

nuttallwin

Nuttall定义的最小4术语Blackman-Harris窗口

obw

占领带宽

parzenwin

Parzen (de la Vallée Poussin) window

pchip*

Piecewise Cubic Hermite Interpolating Polynomial (PCHIP)

peak2peak

Maximum-to-minimum difference

peak2rms

Peak-magnitude-to-RMS ratio

periodogram

Periodogram power spectral density estimate

plomb*

Lomb-Scargle periodogram

poly2ac*

Convert prediction filter polynomial to autocorrelation sequence

poly2lsf*

spe预测滤波器系数转换成线ctral frequencies

poly2rc*

Convert prediction filter polynomial to reflection coefficients

POW2DB.

Convert power to decibels

powerbw

Power bandwidth

pspectrum*

分析频率和时频域中的信号

pulstran*

Pulse train

pwelch

Welch's power spectral density estimate

rainflow*

Rainflow counts for fatigue analysis

randn*

Normally distributed random numbers

rc2ac*

将反射系数转换为自相关序列

rc2poly*

Convert reflection coefficients to prediction filter polynomial

rceps

Real cepstrum and minimum-phase reconstruction

rcosdesign*

Raised cosine FIR pulse-shaping filter design

rectpuls

Sampled aperiodic rectangle

retwin.

Rectangular window

重组

Resample uniform or nonuniform data to new fixed rate

rtlevinson.*

Reverse Levinson-Durbin recursion

rms

Root-mean-square level

锯齿

Sawtooth or triangle wave

sfdr*

虚假的自由动态范围

sgolay

Savitzky-Golay filter design

sgolayfilt

Savitzky-Golay filtering

sin

Sine of argument in radians

sinc

Sinc function

smoothdata*

Smooth noisy data

SOS2TF.

Convert digital filter second-order section data to transfer function form

sosfilt

Second-order (biquadratic) IIR digital filtering

spectrogram*

Spectrogram using short-time Fourier transform

spline*

Cubic spline data interpolation

正方形

Square wave

std*

Standard deviation

stft

Short-time Fourier transform

taylorwin

Taylor window

tf2ss

sta转换传递函数滤波器参数te-space form

tfestimate*

Transfer function estimate

TFRIDGE.*

Time-frequency ridges

triang

Triangular window

tripuls

Sampled aperiodic triangle

tsa*

Time-synchronous signal average

tukeywin

Tukey (tapered cosine) window

打开*

Shift phase angles

upfirdn

Upsample, apply FIR filter, and downsample

upsample

Increase sample rate by integer factor

var*

方差

wvd*

Wigner-Ville distribution and smoothed pseudo Wigner-Ville distribution

xcorr*

交叉相关

xcorr2

2-D交叉相关

xcov

Cross-covariance

xspectrogram*

使用短时傅里叶变换的跨谱图

xwvd*

十字Wigner-Ville分销和交叉平滑伪Wigner-Ville分布

yulewalk*

Recursive digital filter design

zp2ss

Convert zero-pole-gain filter parameters to state-space form

zp2tf

Convert zero-pole-gain filter parameters to transfer function form