abs
| MATLAB | — |
abs
| Fixed-Point Designer™ | — |
accumneg
| Fixed-Point Designer | — |
accumpos
| Fixed-Point Designer | — |
acos
| MATLAB | When
the input value x is real, but the output should
be complex, generates an error during simulation and returns NaN in
generated code. To get the complex result, make the input value complex
by passing in complex(x) . |
acosd
| MATLAB | — |
acosh
| MATLAB | Generates an error during simulation and returns NaN in
generated code when the input value x is real,
but the output should be complex. To get the complex result, make
the input value complex by passing in complex(x) .
|
acot
| MATLAB | — |
acotd
| MATLAB | — |
acoth
| MATLAB | — |
acsc
| MATLAB | — |
acscd
| MATLAB | — |
acsch
| MATLAB | — |
adaptthresh | Image Processing Toolbox™ | The ForegroundPolarity and Statistic arguments
must be compile-time constants. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The NeighborhoodSize argument must be a compile-time
constant. |
add
| Fixed-Point Designer | Code generation in MATLAB does not support the syntax F.add(a,b) .
You must use the syntax add(F,a,b) . |
affine2d
| Image Processing Toolbox | When generating code, you can only specify single objects—arrays
of objects are not supported. MATLAB Function Block
support: Yes. |
aictest
| Phased Array System Toolbox™ | Does not support variable-size inputs. |
airy
| MATLAB | Always returns a complex
result. |
albersheim
| Phased Array System Toolbox | Does not support variable-size inputs. |
all
| MATLAB | Variable-Sizing Restrictions for Code Generation of Toolbox
Functions |
all
| Fixed-Point Designer | — |
ambgfun
| Phased Array System Toolbox | |
and
| MATLAB | — |
angdiff | Robotics System Toolbox™ | Supports MATLAB Function block: Yes |
any
| MATLAB | Variable-Sizing Restrictions for Code Generation of Toolbox
Functions |
any
| Fixed-Point Designer | — |
aperture2gain
| Phased Array System Toolbox | Does not support variable-size inputs. |
appcoef
| Wavelet Toolbox™ | Variable-size data support must be enabled. Supports MATLAB
Function block: No |
appcoef2
| Wavelet Toolbox | Variable-size data support must be enabled. Supports MATLAB
Function block: No |
asec
| MATLAB | — |
asecd
| MATLAB | — |
asech
| MATLAB | — |
asin
| MATLAB | Generates an error during simulation and returns NaN in
generated code when the input value x is real,
but the output should be complex. To get the complex result, make
the input value complex by passing in complex(x) .
|
asind
| MATLAB | — |
asinh
| MATLAB | — |
assert
| MATLAB | |
assignDetectionsToTracks
| Computer Vision System Toolbox™ | Supports MATLAB Function block: Yes |
atan
| MATLAB | — |
atan2
| MATLAB | — |
atan2
| Fixed-Point Designer | — |
atan2d
| MATLAB | — |
atand
| MATLAB | — |
atanh
| MATLAB | Generates an error during simulation and returns NaN in
generated code when the input value x is real,
but the output should be complex. To get the complex result, make
the input value complex by passing in complex(x) .
|
audioDeviceReader
| Audio System Toolbox™ | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
audioDeviceWriter
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
audioDeviceWriter
| DSP System Toolbox™ | |
audioOscillator
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
audioPluginInterface
| Audio System Toolbox | Supports MATLAB Function Block: Yes |
audioPluginParameter
| Audio System Toolbox | Supports MATLAB Function Block: Yes |
audioPlugin
| Audio System Toolbox | Supports MATLAB Function Block: Yes |
audioPluginSource
| Audio System Toolbox | Supports MATLAB Function Block: Yes |
axang2quat
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
axang2rotm
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
axang2tform
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
az2broadside
| Phased Array System Toolbox | Does not support variable-size inputs. |
azel2phitheta
| Phased Array System Toolbox | Does not support variable-size inputs. |
azel2phithetapat
| Phased Array System Toolbox | Does not support variable-size inputs. |
azel2uv
| Phased Array System Toolbox | Does not support variable-size inputs. |
azel2uvpat
| Phased Array System Toolbox | Does not support variable-size inputs. |
azelaxes
| Phased Array System Toolbox | Does not support variable-size inputs. |
bandwidth
| MATLAB | — |
barthannwin
| Signal Processing Toolbox™ | Window length must be a constant. Expressions or variables
are allowed if their values do not change. Specifying constants
|
bartlett
| Signal Processing Toolbox | Window length must be a constant. Expressions or variables
are allowed if their values do not change. Specifying constants
|
bboxOverlapRatio
| Computer Vision System Toolbox | SupportsMATLAB Function block:
No |
bbox2points | Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
bchgenpoly | Communications System Toolbox™ | All inputs must be constants. Expressions or variables
are allowed if their values do not change. |
beat2range
| Phased Array System Toolbox | Does not support variable-size inputs. |
besselap
| Signal Processing Toolbox | Filter order must be a constant. Expressions or variables
are allowed if their values do not change. Specifying constants
|
besseli
| MATLAB | |
besselj
| MATLAB | |
beta
| MATLAB | — |
betacdf
| Statistics and Machine Learning Toolbox™ | — |
betafit
| Statistics and Machine Learning Toolbox | — |
betainc
| MATLAB | Always returns a complex
result. |
betaincinv
| MATLAB | Always returns a complex
result. |
betainv
| Statistics and Machine Learning Toolbox | — |
betalike
| Statistics and Machine Learning Toolbox | — |
betaln
| MATLAB | — |
betapdf
| Statistics and Machine Learning Toolbox | — |
betarnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
betastat
| Statistics and Machine Learning Toolbox | — |
bi2de
| Communications System Toolbox | — |
billingsleyicm
| Phased Array System Toolbox | Does not support variable-size inputs. |
bin2dec
| MATLAB | |
bin2gray
| Communications System Toolbox | — |
binocdf
| Statistics and Machine Learning Toolbox | — |
binoinv
| Statistics and Machine Learning Toolbox | — |
binopdf
| Statistics and Machine Learning Toolbox | — |
binornd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
binostat
| Statistics and Machine Learning Toolbox | — |
bitand | MATLAB | — |
bitand | Fixed-Point Designer | |
bitandreduce | Fixed-Point Designer | — |
bitcmp | MATLAB | — |
bitcmp | Fixed-Point Designer | — |
bitconcat | Fixed-Point Designer | — |
bitget | MATLAB | — |
bitget | Fixed-Point Designer | — |
bitor | MATLAB | — |
bitor | Fixed-Point Designer | |
bitorreduce | Fixed-Point Designer | — |
bitreplicate | Fixed-Point Designer | — |
bitrevorder | Signal Processing Toolbox | — |
bitrol | Fixed-Point Designer | — |
bitror | Fixed-Point Designer | — |
bitset | MATLAB | — |
bitset | Fixed-Point Designer | — |
bitshift | MATLAB | — |
bitshift | Fixed-Point Designer | — |
bitsliceget | Fixed-Point Designer | — |
bitsll | Fixed-Point Designer | |
bitsra | Fixed-Point Designer | |
bitsrl | Fixed-Point Designer | |
bitxor | MATLAB | — |
bitxor | Fixed-Point Designer | |
bitxorreduce | Fixed-Point Designer | — |
blackman | Signal Processing Toolbox | Window length must be a constant. Expressions or variables
are allowed if their values do not change. Specifying constants
|
blackmanharris | Signal Processing Toolbox | Window length must be a constant. Expressions or variables
are allowed if their values do not change. Specifying constants
|
blanks | MATLAB | — |
blkdiag | MATLAB | — |
bohmanwin | Signal Processing Toolbox | Window length must be a constant. Expressions or variables
are allowed if their values do not change. Specifying constants
|
boundarymask
| Image Processing Toolbox | The conn argument must be a compile-time
constant. If you choose the generic MATLAB Host
Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function block
support: Yes. |
break
| MATLAB | — |
BRISKPoints | Computer Vision System Toolbox | Supports MATLAB Function block: No To index
locations with this object, use the syntax: points.Location(idx,:) ,
for points object. See visionRecovertformCodeGeneration_kernel.m,
which is used in the Introduction to Code Generation with Feature Matching and Registration example. |
broadside2az
| Phased Array System Toolbox | Does not support variable-size inputs. |
bsxfun | MATLAB | Variable-Sizing Restrictions for Code Generation of Toolbox
Functions |
buttap | Signal Processing Toolbox | Filter order must be a constant. Expressions or variables
are allowed if their values do not change. Specifying constants
|
butter | Signal Processing Toolbox | Filter coefficients must be constants. Expressions or
variables are allowed if their values do not change. Specifying constants
|
buttord | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
bwareaopen
| Image Processing Toolbox | BW must be a 2-D binary image. N-D
arrays are not supported. conn can only be one
of the two-dimensional connectivities (4 or 8) or a 3-by-3 matrix.
The 3-D connectivities (6, 18, and 26) are not supported. Matrices
of size 3-by-3-by-...-by-3 are not supported. conn must
be a compile-time constant.
MATLAB Function Block
support: No. |
bwboundaries
| Image Processing Toolbox | The conn and options arguments
must be compile-time constants and the return value A can
only be a full matrix, not a sparse matrix. If you choose
the generic MATLAB Host Computer target platform,
generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: No. |
bwconncomp
| Image Processing Toolbox | The input image must be 2-D. The conn argument
must be a compile-time constant and the only connectivities supported
are 4 or 8. You can specify connectivity as a 3-by-3 matrix, but it
can only be [0 1 0;1 1 1;0 1 0] or ones(3) . The CC struct
return value does not include the PixelIdxList field. MATLAB Function
Block support: No. |
bwdist
| Image Processing Toolbox | The method argument must be a compile-time
constant. Input images must have fewer than 232 pixels. Generated
code for this function uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
bweuler
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
bwlabel
| Image Processing Toolbox | When generating code, the parameter n must
be a compile-time constant. MATLAB Function Block
support: No. |
bwlookup
| Image Processing Toolbox | For best results, specify an input image of class logical . If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
bwmorph
| Image Processing Toolbox | The character vector specifying the operation must be
a constant and, for best results, specify an input image of class logical . If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: No. |
bwpack
| Image Processing Toolbox | Generated code for this function uses a precompiled platform-specific shared
library. MATLAB Function Block support: Yes. |
bwperim
| Image Processing Toolbox | Supports only 2-D images. Does not support any
no-output-argument syntaxes. The connectivity
matrix input argument, conn , must be a compile-time
constant. If you choose the generic MATLAB Host
Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
bwselect
| Image Processing Toolbox | Supports only the 3 and 4 input argument syntaxes: BW2
= bwselect(BW,c,r) and BW2 = bwselect(BW,c,r,n) .
The optional fourth input argument, n , must be
a compile-time constant. In addition, with code generation, bwselect only
supports only the 1 and 2 output argument syntaxes: BW2
= bwselect(___) or [BW2, idx] = bwselect(___) . If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
bwtraceboundary
| Image Processing Toolbox | The dir , fstep ,
and conn arguments must be compile-time constants. MATLAB Function
Block support: No. |
bwunpack
| Image Processing Toolbox | Generated code for this function uses a precompiled platform-specific shared
library. MATLAB Function Block support: Yes.
The input argument M must be a compile-time constant. |
ca2tf
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
cameraMatrix
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
cameraParameters
| Computer Vision System Toolbox | Supports MATLAB Function block: No Use
the toStruct method
to pass a cameraParameters object into generated
code. See the Code Generation for Depth Estimation From Stereo Video example. |
cameraPose
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
cameraPoseToExtrinsics
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
cart2hom
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
cart2pol
| MATLAB | — |
cart2sph
| MATLAB | — |
cart2sphvec
| Phased Array System Toolbox | Does not support variable-size inputs. |
cast
| MATLAB | — |
cat
| MATLAB | |
cbfweights
| Phased Array System Toolbox | Does not support variable-size inputs. |
cdf
| Statistics and Machine Learning Toolbox | — |
ceil
| MATLAB | — |
ceil | Fixed-Point Designer | — |
cell
| MATLAB | Cell Array Limitations for Code Generation |
cfirpm | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
char
| MATLAB | Does not support cell arrays. |
cheb1ap
| Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
cheb1ord
| Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
cheb2ap
| Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
cheb2ord
| Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
chebwin
| Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
cheby1
| Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
cheby2
| Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
chi2cdf
| Statistics and Machine Learning Toolbox | — |
chi2inv
| Statistics and Machine Learning Toolbox | — |
chi2pdf
| Statistics and Machine Learning Toolbox | — |
chi2rnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
chi2stat
| Statistics and Machine Learning Toolbox | — |
chol
| MATLAB | — |
circpol2pol
| Phased Array System Toolbox | Does not support variable-size inputs. |
circshift
| MATLAB | Does not support cell arrays for the first argument. |
cl2tf
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
class
| MATLAB | — |
ClassificationECOC or CompactClassificationECOC
| Statistics and Machine Learning Toolbox | When you train one of these models using fitcecoc or
Classification Learner:The predictor variables in the input argument Tbl cannot be sparse.
The predictor data input argument value X must be a full, numeric matrix. The class labels input argument value (Y ) cannot be a categorical
array. The ClassNames name-value
pair argument cannot be a categorical array. You cannot use the CategoricalPredictors name-value
pair argument or supply a table containing at least one categorical
predictor. That is, code generation does not support categorical predictors.
To dummy-code variables that you want treated as categorical, use dummyvar . All binary learners must be support vector machines
or logistic-regression, linear classification models. That is, for
the Learners name-value
pair argument, you can specify 'svm'
An SVM template object or a cell vector of such objects
(see templateSVM ). A linear classification model template object or a
cell vector of such objects (see templateLinear ). For limitations on ClassificationSVM or ClassificationLinear model
objects, see their entries in this table.
You cannot specify to fit posterior probabilities
by using the FitPosterior name-value
pair argument.
|
ClassificationLinear
| Statistics and Machine Learning Toolbox | When you train one of these models using fitclinear :The predictor data input argument value X must be a full,
numeric matrix. The class labels input argument value (Y ) cannot be a categorical
array. The ClassNames name-value
pair argument cannot be a categorical array. Logistic regression learners are supported only. That
is, you can specify 'logistic' only for the Learner name-value
pair argument. You can specify one regularization strength only.
That is, you can specify 'auto' or a nonnegative
scalar only for the Lambda name-value
pair argument. You cannot specify a score transformation function
by using the ScoreTransform name-value
pair argument or by assigning the ScoreTransform object
property.
|
ClassificationSVM or CompactClassificationSVM
| Statistics and Machine Learning Toolbox | When you train one of these models using fitcsvm or
Classification Learner:The class labels input argument value (Y ) cannot be a categorical
array. The ClassNames name-value
pair argument cannot be a categorical array. You cannot use the CategoricalPredictors name-value
pair argument or supply a table containing at least one categorical
predictor. That is, code generation does not support categorical predictors.
To dummy-code variables that you want treated as categorical, use dummyvar . MATLAB does not support one-class learning. You cannot specify a score transformation function
by using the ScoreTransform name-value
pair argument or by assigning the ScoreTransform object
property. Consequently, saveCompactModel cannot
accept compact SVM models equipped to estimate class posterior probabilities,
that is, models returned by fitPosterior or fitSVMPosterior .
|
colon
| MATLAB | Does not accept complex inputs. The input i cannot have a logical
value. Does not accept vector inputs. Inputs must be constants. Uses single-precision arithmetic to produce single-precision
results.
|
comm.ACPR
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.AGC
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.AlgebraicDeinterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.APPDecoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.AWGNChannel
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BarkerCode
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BasebandFileReader
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BasebandFileWriter
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BCHDecoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BCHEncoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BinarySymmetricChannel
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BlockDeinterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BlockInterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BPSKDemodulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.BPSKModulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CarrierSynchronizer | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CCDF
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CoarseFrequencyCompensator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.ConstellationDiagram
| Communications System Toolbox | |
comm.ConvolutionalDeinterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.ConvolutionalEncoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.ConvolutionalInterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CPFSKDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CPFSKModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CPMCarrierPhaseSynchronizer
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CPMDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CPMModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CRCDetector
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.CRCGenerator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DBPSKDemodulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DBPSKModulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.Descrambler
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DifferentialDecoder | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DifferentialEncoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DiscreteTimeVCO
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DPSKDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DPSKModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DQPSKDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.DQPSKModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.ErrorRate
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.EVM
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.EyeDiagram
| Communications System Toolbox | |
comm.FMBroadcastDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.FMBroadcastModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.FMDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.FMModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.FSKDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.FSKModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.GeneralQAMDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.GeneralQAMModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.GeneralQAMTCMDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.GeneralQAMTCMModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.GMSKDemodulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.GMSKModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.GMSKTimingSynchronizer
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.GoldSequence
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.HadamardCode
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.HDLCRCDetector
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.HDLCRCGenerator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.HDLRSDecoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.HDLRSEncoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.HelicalDeinterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.HelicalInterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.IntegrateAndDumpFilter
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.IQImbalanceCompensator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.KasamiSequence
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.LDPCDecoder
| Communications System Toolbox | |
comm.LDPCEncoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.LTEMIMOChannel
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MatrixDeinterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MatrixHelicalScanDeinterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MatrixHelicalScanInterLeaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MatrixInterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MemorylessNonlinearity
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MER
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MIMOChannel
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MLSEEqualizer
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MSKDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MSKModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MSKTimingSynchronizer
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MultiplexedDeinterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.MultiplexedInterleaver
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.OFDMDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.OFDMModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.OSTBCCombiner
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.OSTBCEncoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.OQPSKDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.OQPSKModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PAMDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PAMModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PhaseFrequencyOffset
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PhaseNoise
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PNSequence
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PreambleDetector
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PSKCoarseFrequencyEstimator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PSKDemodulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PSKModulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PSKTCMDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.PSKTCMModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.QAMCoarseFrequencyEstimator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.QPSKDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.QPSKModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RaisedCosineReceiveFilter
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RaisedCosineTransmitFilter
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RayleighChannel
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RectangularQAMDemodulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RectangularModulator
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RectangularQAMTCMDemodulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RectangularQAMTCMModulator | Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RicianChannel
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RSDecoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.RSEncoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.Scrambler
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.SphereDecoder
| Communications System Toolbox | Communications System Toolbox |
comm.SymbolSynchronizer
| Communications System Toolbox | Communications System Toolbox |
comm.ThermalNoise
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.TurboDecoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.TurboEncoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.ViterbiDecoder
| Communications System Toolbox | System Objects in MATLAB Code Generation |
comm.WalshCode
| Communications System Toolbox | System Objects in MATLAB Code Generation |
compan
| MATLAB | — |
complex
| MATLAB | — |
complex
| Fixed-Point Designer | — |
compressor
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
computer
| MATLAB | |
cond | MATLAB | — |
conj
| MATLAB | — |
conj
| Fixed-Point Designer | — |
conndef
| Image Processing Toolbox | Input arguments must be compile-time constants. MATLAB Function
Block support: Yes. |
continue
| MATLAB | — |
conv
| MATLAB | Variable-Sizing Restrictions for Code Generation of Toolbox
Functions |
conv
| Fixed-Point Designer | Variable-sized inputs are only supported when the SumMode property
of the governing fimath is set to Specify
precision or Keep LSB . For variable-sized signals, you may see different
results between MATLAB and the generated code. In generated code, the output for variable-sized signals
is computed using the SumMode property of the governing fimath . In MATLAB, the output for variable-sized signals
is computed using the SumMode property of the governing fimath when
both inputs are nonscalar. However, if either input is a scalar, MATLAB computes
the output using the ProductMode of the governing fimath .
|
conv2
| MATLAB | — |
convenc
| Communications System Toolbox | — |
convergent
| Fixed-Point Designer | — |
convn
| MATLAB | — |
cordicabs
| Fixed-Point Designer | |
cordicangle
| Fixed-Point Designer | |
cordicatan2
| Fixed-Point Designer | |
cordiccart2pol
| Fixed-Point Designer | |
cordiccexp
| Fixed-Point Designer | |
cordiccos
| Fixed-Point Designer | |
cordicpol2cart
| Fixed-Point Designer | |
cordicrotate
| Fixed-Point Designer | |
cordicsin
| Fixed-Point Designer | |
cordicsincos
| Fixed-Point Designer | |
cordicsqrt
| Fixed-Point Designer | |
cornerPoints
| Computer Vision System Toolbox | Supports MATLAB Function block: No To index
locations with this object, use the syntax: points.Location(idx,:) ,
for points object. See visionRecovertformCodeGeneration_kernel.m,
which is used in the Introduction to Code Generation with Feature Matching and Registration example. |
corrcoef
| MATLAB | |
cos
| MATLAB | — |
cos
| Fixed-Point Designer | — |
cosd
| MATLAB | — |
cosh
| MATLAB | — |
cot
| MATLAB | — |
cotd
| MATLAB | In some cases, returns -Inf when MATLAB returns Inf . In some cases, returns Inf when MATLAB returns -Inf .
|
coth
| MATLAB | — |
cov
| MATLAB | |
cplxpair
| MATLAB | — |
cross
| MATLAB | |
crossoverFilter
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
csc
| MATLAB | — |
cscd
| MATLAB | In some cases, returns -Inf when MATLAB returns Inf . In some cases, returns Inf when MATLAB returns -Inf .
|
csch
| MATLAB | — |
ctranspose
| MATLAB | — |
ctranspose
| Fixed-Point Designer | — |
cummin
| MATLAB | — |
cummax
| MATLAB | — |
cumprod
| MATLAB | Does not support logical inputs. Cast input to double first. |
cumsum
| MATLAB | Does not support logical inputs. Cast input to double first. |
cumtrapz
| MATLAB | — |
db2pow
| Signal Processing Toolbox | — |
dct | Signal Processing Toolbox | Code generation for this function requires the DSP System Toolbox software. Length of transform dimension must be a power of two.
If specified, the pad or truncation value must be constant. Expressions
or variables are allowed if their values do not change. Specifying constants
|
ddencmp
| Wavelet Toolbox | Variable-size data support must be enabled. Supports MATLAB
Function block: No |
de2bi
| Communications System Toolbox | — |
deal
| MATLAB | — |
deblank
| MATLAB | |
dec2bin
| MATLAB | If input d is double , d must
be less than 2^52 . If input d is single , d must
be less than 2^23 . Unless you specify input n to be
constant and n is large enough that the output
has a fixed number of columns regardless of the input values, this
function requires variable-sizing support. Without variable-sizing
support, n must be at least 52 for double , 23 for single , 16 for char , 32 for int32 , 16 for int16 ,
and so on.
|
dec2hex
| MATLAB | If input d is double , d must
be less than 2^52 . If input d is single , d must
be less than 2^23 . Unless you specify input n to be
constant, and n is large enough that the output
has a fixed number of columns regardless of the input values, this
function requires variable-sizing support. Without variable-sizing
support, n must be at least 13 for double , 6 for single , 4 for char , 8 for int32 , 4 for int16 ,
and so on.
|
dechirp
| Phased Array System Toolbox | Does not support variable-size inputs. |
deconv
| MATLAB | Variable-Sizing Restrictions for Code Generation of Toolbox
Functions |
deg2rad
| MATLAB | — |
del2
| MATLAB | — |
delayseq
| Phased Array System Toolbox | Does not support variable-size inputs. |
demosaic
| Image Processing Toolbox | The sensorAlignment argument must
be a compile-time constant. MATLAB Function Block
support: Yes. |
depressionang
| Phased Array System Toolbox | Does not support variable-size inputs. |
designMultirateFIR
| DSP System Toolbox | The inputs to the function must be constants |
designParamEQ
| Audio System Toolbox | Supports MATLAB Function Block: Yes |
designShelvingEQ
| Audio System Toolbox | Supports MATLAB Function Block: Yes |
designVarSlopeFilter
| Audio System Toolbox | Supports MATLAB Function Block: Yes |
det
| MATLAB | — |
detcoef
| Wavelet Toolbox | — Supports MATLAB Function block:
No |
detcoef2
| Wavelet Toolbox | — Supports MATLAB Function block:
No |
detectBRISKFeatures
| Computer Vision System Toolbox | Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries. Portable C Code Generation for Functions That Use OpenCV Library |
detectCheckerboardPoints
| Computer Vision System Toolbox | Supports MATLAB Function block: No Code
generation will not support specifying images as file names or cell
arrays of file names. It supports only checkerboard detection in a
single image or stereo pair of images. For example, these syntaxes
are supported: I1 and I2 are
single grayscale or RGB images.
|
detectFASTFeatures | Computer Vision System Toolbox | Supports MATLAB Function block: No Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries. Portable C Code Generation for Functions That Use OpenCV LibraryGenerated
code for this function uses a precompiled platform-specific shared
library. |
detectHarrisFeatures
| Computer Vision System Toolbox | Compile-time constant input: FilterSize Supports MATLAB Function block: No Generated code for this function uses a precompiled platform-specific shared
library. |
detectMinEigenFeatures
| Computer Vision System Toolbox | Compile-time constant input: FilterSize Supports MATLAB Function block: No Generated code for this function uses a precompiled platform-specific shared
library. |
detectMSERFeatures
| Computer Vision System Toolbox | Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries Portable C Code Generation for Functions That Use OpenCV Library For code generation, the function outputs regions.PixelList as
an array. The region sizes are defined in regions.Lengths . |
detectSURFFeatures
| Computer Vision System Toolbox | Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries. Portable C Code Generation for Functions That Use OpenCV Library |
detrend
| MATLAB | |
diag
| MATLAB | If supplied, the argument representing the order of
the diagonal matrix must be a real and scalar integer value. For variable-size inputs that are variable-length
vectors (1-by-: or :-by-1), diag : For variable-size inputs that are not variable-length
vectors, diag : Treats the input as a matrix. Does not support inputs that are vectors at run time. Returns a variable-length vector.
If the input is variable-size (:m-by-:n) and has shape 0-by-0
at run time, the output is 0-by-1 not 0-by-0. However, if the input
is a constant size 0-by-0, the output is [] . For variable-size inputs that are not variable-length
vectors (1-by-: or :-by-1), diag treats the input
as a matrix from which to extract a diagonal vector. This behavior
occurs even if the input array is a vector at run time. To force diag to
build a matrix from variable-size inputs that are not 1-by-: or :-by-1,
use: diag(x(:)) instead of diag(x)
diag(x(:),k) instead of diag(x,k)
Variable-Sizing Restrictions for Code Generation of Toolbox
Functions
|
diag
| Fixed-Point Designer | |
diff
| MATLAB | |
disparity
| Computer Vision System Toolbox | Compile-time constant input restriction: 'Method' . Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries. Portable C Code Generation for Functions That Use OpenCV Library |
divide
| Fixed-Point Designer | Any non-fi input
must be constant. Its value must be known at compile time so that
it can be cast to a fi object. Complex and imaginary divisors are not supported. The syntax T.divide(a,b) is
not supported.
|
dop2speed
| Phased Array System Toolbox | Does not support variable-size inputs. |
dopsteeringvec
| Phased Array System Toolbox | Does not support variable-size inputs. |
doppler
| Communications System Toolbox | All inputs must be constants. Expressions or variables
are allowed if their values do not change. |
dot
| MATLAB | — |
double
| MATLAB | — |
double
| Fixed-Point Designer | — |
downsample | Signal Processing Toolbox | — |
dpskdemod
| Communications System Toolbox | — |
dpskmod
| Communications System Toolbox | — |
dpss | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
dsp.AdaptiveLatticeFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.AffineProjectionFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.AllpassFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation The System object supports
code generation only when the Structure property
is set to Minimum multiplier or Lattice . |
dsp.AllpoleFilter
| DSP System Toolbox | |
dsp.AnalyticSignal
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.ArrayPlot
| DSP System Toolbox | |
dsp.ArrayVectorAdder
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.ArrayVectorDivider
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.ArrayVectorMultiplier
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.ArrayVectorSubtractor
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.AudioFileReader | DSP System Toolbox | |
dsp.AudioFileWriter
| DSP System Toolbox | |
dsp.Autocorrelator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.BinaryFileReader
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.BinaryFileWriter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.BiquadFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.BurgAREstimator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.BurgSpectrumEstimator
| DSP System Toolbox | |
dsp.CepstralToLPC
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Channelizer
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.ChannelSynthesizer
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.CICCompensationDecimator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.CICCompensationInterpolator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.CICDecimator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.CICInterpolator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Convolver
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Counter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Crosscorrelator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.CrossSpectrumEstimator
| DSP System Toolbox | |
dsp.CumulativeProduct
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.CumulativeSum
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.DCBlocker
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.DCT
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Delay
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.DelayLine
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Differentiator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.DigitalDownConverter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.DigitalUpConverter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.DigitalFilter
| DSP System Toolbox | |
dsp.FarrowRateConverter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FastTransversalFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FFT
| DSP System Toolbox | Under the following conditions: When FFTImplementation is set
to 'FFTW' . When FFTImplementation is set
to 'Auto' , FFTLengthSource is
set to 'Property' , and FFTLength is
not a power of 2 .
Use the packNGo function to package
the code generated from this System object and all relevant files
in a compressed zip file. Using this zip file, you can relocate, unpack,
and rebuild your project in another development environment with no MATLAB installed.
For an example, see Package Code for Other Development Environments. System Objects in MATLAB Code Generation
|
dsp.FilterCascade
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FilteredXLMSFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FIRDecimator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FIRFilter
| DSP System Toolbox | |
dsp.FIRHalfbandDecimator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FIRHalfbandInterpolator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FIRInterpolator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FIRRateConverter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.FrequencyDomainAdaptiveFilter
| DSP System Toolbox | |
dsp.HighpassFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Histogram
| DSP System Toolbox | |
dsp.IDCT
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.IFFT
| DSP System Toolbox | Under the following conditions: When FFTImplementation is set
to 'FFTW' . When FFTImplementation is set
to 'Auto' , FFTLengthSource is
set to 'Property' , and FFTLength is
not a power of 2 .
Use the packNGo function to package
the code generated from this System object and all relevant files
in a compressed zip file. Using this zip file, you can relocate, unpack,
and rebuild your project in another development environment with no MATLAB installed.
For an example, see Package Code for Other Development Environments. System Objects in MATLAB Code Generation
|
dsp.IIRFilter
| DSP System Toolbox | |
dsp.IIRHalfbandDecimator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.IIRHalfbandInterpolator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Interpolator
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.KalmanFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LDLFactor
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LevinsonSolver
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LMSFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LowerTriangularSolver
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LowpassFilter | DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LPCToAutocorrelation
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LPCToCepstral
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LPCToLSF
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LPCToLSP
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LPCToRC
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LSFToLPC
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LSPToLPC
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.LUFactor
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Maximum
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Mean
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Median
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.MedianFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.MovingAverage
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.MovingMaximum
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.MovingMinimum
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.MovingRMS
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.MovingStandardDeviation
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.MovingVariance
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Minimum
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.NCO
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Normalizer
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.PeakFinder
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.PeakToPeak
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.PeakToRMS
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.PhaseExtractor
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.PhaseUnwrapper
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.RCToAutocorrelation
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.RCToLPC
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.RMS
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.RLSFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.SampleRateConverter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.ScalarQuantizerDecoder
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.ScalarQuantizerEncoder
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.SignalSource
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.SineWave | DSP System Toolbox | |
dsp.SpectrumAnalyzer
| DSP System Toolbox | |
dsp.SpectrumEstimator
| DSP System Toolbox | |
dsp.StandardDeviation
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.StateLevels
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.SubbandAnalysisFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.SubbandSynthesisFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.TimeScope
| DSP System Toolbox | |
dsp.TransferFunctionEstimator
| DSP System Toolbox | |
dsp.UDPReceiver
| DSP System Toolbox | |
dsp.UDPSender
| DSP System Toolbox | |
dsp.UpperTriangularSolver
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.VariableBandwidthFIRFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.VariableBandwidthIIRFilter
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.VariableFractionDelay
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.VariableIntegerDelay
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Variance
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.VectorQuantizerDecoder
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.VectorQuantizerEncoder
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dsp.Window
| DSP System Toolbox | |
dsp.ZeroCrossingDetector
| DSP System Toolbox | System Objects in MATLAB Code Generation |
dvbs2ldpc
| Communications System Toolbox | All inputs must be constants. Expressions or variables
are allowed if their values do not change. |
dwt
| Wavelet Toolbox | — Supports MATLAB Function block:
No |
dwt2
| Wavelet Toolbox | — Supports MATLAB Function block:
No |
dyadup
| Wavelet Toolbox | If X is empty, generated code returns X and MATLAB returns [] . Suppose that all of
the following conditions are true: X is a variable-size array.
X is not a variable-length column
vector (:-by-1).
X is a column vector at run time.
'type ' is
not supplied.
In generated code, the output for y = dyadup(X,k) ,
where k is optional, matches the output for y
= dyadup(X,k,'c') . In MATLAB, the output for y
= dyadup(X,k) matches the output for y = dyadup(X,k,'r') . For code generation, when you do not specify 'type ' ,
if you want dyadup to treat X as
a column vector, X must be a variable-length vector
(:-by-1).
Supports MATLAB Function block:
No |
edge
| Image Processing Toolbox | The method , direction ,
and sigma arguments must be a compile-time constants.
In addition, nonprogrammatic syntaxes are not supported. For example,
the syntax edge(im) , where edge does
not return a value but displays an image instead, is not supported. If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The input arguments thresh and sigma must
be compile-time constants. |
effearthradius
| Phased Array System Toolbox | Does not support variable-size inputs. |
eig
| MATLAB | V might represent a different basis
of eigenvectors, and the eigenvalues in D might
not be in the same order as in MATLAB.
For the generalized eigenvalue problem, [V,D]
= eig(A,B) , the 'qz' option is always
used. For the standard eigenvalue problem, [V,D]
= eig(A) , when A is Hermitian, schur is used to calculate V and D .
Otherwise, the results of [V,D] = eig(A) are similar
to those obtained using [V,D] = eig(A,eye(size(A)),'qz') in MATLAB,
except that the columns of V are normalized.
Options 'balance' , and 'nobalance' are
not supported for the standard eigenvalue problem. 'chol' is
not supported for the symmetric generalized eigenvalue problem. Outputs are of complex type. Does not support the option to calculate left eigenvectors.
|
ellip | Signal Processing Toolbox | Inputs must be constant. Expressions or variables are
allowed if their values do not change. Specifying constants
|
ellipap | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
ellipke
| MATLAB | — |
ellipord | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
end
| MATLAB | — |
end
| Fixed-Point Designer | — |
epipolarLine
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
eps
| MATLAB | — |
eps
| Fixed-Point Designer | Supported for scalar fixed-point signals only. Supported for scalar, vector, and matrix, fi single
and fi double signals.
|
eq
| MATLAB | You cannot use eq to test equality
between an enumeration member and a character array or cell array
of character arrays. |
eq
| Fixed-Point Designer | Not supported for fixed-point signals with different
biases. |
erf
| MATLAB | — |
erfc
| MATLAB | — |
erfcinv
| MATLAB | — |
erfcx
| MATLAB | — |
erfinv
| MATLAB | — |
error
| MATLAB | Has no effect
in standalone code even when run-time error detection is enabled.
See Run-Time Error Detection and Reporting in Standalone C/C++
Code. |
espritdoa
| Phased Array System Toolbox | Does not support variable-size inputs. |
estimateEssentialMatrix
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
estimateFundamentalMatrix
| Computer Vision System Toolbox | Compile-time constant input: Method , OutputClass , DistanceType ,
and ReportRuntimeError . Supports
MATLAB Function block: Yes |
estimateGeometricTransform
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
estimateUncalibratedRectification
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes
|
estimateWorldCameraPose
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
eul2quat | Robotics System Toolbox | Supports MATLAB Function block: Yes |
eul2rotm | Robotics System Toolbox | Supports MATLAB Function block: Yes |
eul2tform | Robotics System Toolbox | Supports MATLAB Function block: Yes |
evcdf
| Statistics and Machine Learning Toolbox | — |
evinv
| Statistics and Machine Learning Toolbox | — |
evpdf
| Statistics and Machine Learning Toolbox | — |
evrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
evstat
| Statistics and Machine Learning Toolbox | — |
exp
| MATLAB | — |
expander
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
expcdf
| Statistics and Machine Learning Toolbox | — |
expint
| MATLAB | — |
expinv
| Statistics and Machine Learning Toolbox | — |
expm
| MATLAB | — |
expm1
| MATLAB | — |
exppdf
| Statistics and Machine Learning Toolbox | — |
exprnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
expstat
| Statistics and Machine Learning Toolbox | — |
extendedKalmanFilter
| Control System Toolbox™ | For more information, see Generate Code for Online State Estimation in MATLAB. Supports MATLAB
Function block: No |
extendedKalmanFilter
| System Identification Toolbox™ | For more information, see Generate Code for Online State Estimation in MATLAB. Supports MATLAB
Function block: No |
extractFeatures
| Computer Vision System Toolbox | Compile-time constant input restrictions: 'Method' Supports MATLAB Function block: Yes for Block method
only. Generates portable C code using a C++ compiler
that links to OpenCV (Version 2.4.9) libraries for BRISK , FREAK ,
and SURF Methods. Portable C Code Generation for Functions That Use OpenCV Library |
extractHOGFeatures
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
extractLBPFeatures
| Computer Vision System Toolbox | Generates platform-dependent library: No Supports MATLAB Function
block: Yes
|
extrinsics
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
extrinsicsToCameraPose
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
eye
| MATLAB | classname must be a built-in MATLAB numeric
type. Does not invoke the static eye method
for other classes. For example, eye(m, n, 'myclass') does
not invoke myclass.eye(m,n) .
Size arguments must have a fixed size.
|
factor
| MATLAB | The maximum double precision input is 2^33 . The maximum single precision input is 2^25 . The input n cannot have type int64 or uint64 .
|
factorial
| MATLAB | — |
false
| MATLAB | |
fcdf
| Statistics and Machine Learning Toolbox | — |
fclose
| MATLAB | — |
feof
| MATLAB | — |
fft
| MATLAB | |
fft2
| MATLAB | — |
fftn
| MATLAB | The siz argument must have a fixed
size. |
fftshift | MATLAB | — |
fi
| Fixed-Point Designer | Use to create a fixed-point constant or variable. The default constructor syntax without input arguments
is not supported. The rand fi('PropertyName',PropertyValue...) is
not supported. To use property name/property value pairs, you must
first specify the value v of the fi object
as in fi(v,'PropertyName',PropertyValue...) . If the input value is not known at compile time, you
must provide complete numerictype information. All properties related
to data type must be constant for code generation. numerictype object information
must be available for non-fixed-point Simulink® inputs.
|
fieldnames
| MATLAB | Does not support objects. The input must be a structure. |
filter
| MATLAB | |
filter
| Fixed-Point Designer | |
filter2
| MATLAB | — |
filtfilt | Signal Processing Toolbox | Filter coefficients must be constants. Expressions or
variables are allowed if their values do not change. Specifying constants
Code generation does not support second-order sections
as input. You must use transfer functions. |
fimath
| Fixed-Point Designer | Fixed-point signals coming in to a MATLAB Function block
from Simulink are assigned the fimath object
defined in the MATLAB Function dialog in the Model Explorer. Use to create fimath objects in
generated code. If the ProductMode property of
the fimath object is set to anything other than FullPrecision ,
the ProductWordLength and ProductFractionLength properties
must be constant. If the SumMode property of the fimath object
is set to anything other than FullPrecision , the SumWordLength and SumFractionLength properties
must be constant.
|
find
| MATLAB | Issues an error if a variable-size input becomes a
row vector at run time. Note:
This limitation does not apply when the input is scalar or
a variable-length row vector. |
For variable-size inputs, the shape of empty outputs,
0-by-0, 0-by-1, or 1-by-0, depends on the upper bounds of the size
of the input. The output might not match MATLAB when the input
array is a scalar or [] at run time. If the input is a variable-length
row vector, the size of an empty output is 1-by-0, otherwise it is
0-by-1. Always returns a variable-length
vector. Even when you provide the output vector k ,
the output cannot be fixed-size because the output can contain fewer
than k elements. For example, find(x,1) returns
a variable-length vector with 1 or 0 elements.
|
findpeaks
| Signal Processing Toolbox | — |
finv
| Statistics and Machine Learning Toolbox | — |
fir1 | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
fir2 | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
firceqrip
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
fircls | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
fircls1 | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
fireqint
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
firgr
| DSP System Toolbox | |
firhalfband
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
firlpnorm
| DSP System Toolbox | |
firls | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
firminphase
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
firnyquist
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
firpr2chfb
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
firpm | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
firpmord | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
fitgeotrans
| Image Processing Toolbox | The transformtype argument must be
a compile-time constant. The function supports the following transformation
types: 'nonreflectivesimilarity' , 'similarity' , 'affine' ,
or 'projective' . MATLAB Function
Block support: Yes. |
fix
| MATLAB | — |
fix
| Fixed-Point Designer | — |
fixed.Quantizer
| Fixed-Point Designer | — |
flattopwin | Signal Processing Toolbox | All inputs must be constants.
Expressions or variables are allowed if their values do not change. Specifying constants
|
flintmax
| MATLAB | — |
flip
| MATLAB | Does not support cell arrays for the first argument. |
flip
| Fixed-Point Designer | The dimensions argument must be a built-in type; it cannot
be a fi object. |
flipdim
| MATLAB | Does not support cell arrays for the first argument. |
fliplr
| MATLAB | Does not support cell arrays. |
fliplr
| Fixed-Point Designer | — |
flipud
| MATLAB | Does not support cell arrays. |
flipud
| Fixed-Point Designer | — |
floor
| MATLAB | — |
floor
| Fixed-Point Designer | — |
fminbnd
| MATLAB | Does not support the problem structure argument. Ignores the Display option. During
execution, does not print status information, including early termination.
To test the exit condition, use the third output argument. The output structure does not include the algorithm or message fields. Ignores the OutputFcn and PlotFcns options.
|
fminsearch
| MATLAB | Ignores the Display option. Does
not print status information during execution. Test the exitflag output
for the exit condition. The output structure does not include the algorithm or message fields. Ignores the OutputFcn and PlotFcns options.
|
fogpl
| Phased Array System Toolbox | Does not support variable-size inputs. |
fopen
| MATLAB | Does not support: machineformat , encoding ,
or fileID inputs
message output
fopen('all')
Opening a file in text mode. (The file access type
cannot be 'rt' .)
If you disable extrinsic calls, you cannot return fileID s
created with fopen to MATLAB or extrinsic
functions. You can use such fileID s only internally. When generating C/C++ executables, static libraries,
or dynamic libraries, you can open up to 20 files. The generated code does not report errors from invalid
file identifiers. Write your own file open error handling in your MATLAB code.
Test whether fopen returns -1 ,
which indicates that the file open failed. For example: The behavior of the generated code for fread is
compiler-dependent if you: Open a file using fopen with
a permission of a+ . Read the file using fread before
calling an I/O function, such as fseek or frewind ,
that sets the file position indicator.
|
for
| MATLAB | — |
for
| Fixed-Point Designer | — |
fpdf
| Statistics and Machine Learning Toolbox | — |
fprintf
| MATLAB | Does not support: b and t subtypes
on %u , %o %x ,
and %X formats.
$ flag for reusing input arguments.
printing arrays.
There is no automatic
casting. Input arguments must match their format types for predictable
results. Escaped characters are limited to the decimal range
of 0–127. A call to fprintf with fileID equal
to 1 or 2 becomes printf in
the generated C/C++ code in the following cases: When the MATLAB behavior differs from the C compiler
behavior, fprintf matches the C compiler behavior
in the following cases: When you call fprintf with the
format specifier %s , do not put a null character
in the middle of the input character vector. Use fprintf(fid,
'%c', char(0)) to write a null character. When you call fprintf with an
integer format specifier, the type of the integer argument must be
a type that the target hardware can represent as a native C type.
For example, if you call fprintf('%d', int64(n)) ,
the target hardware must have a native C type that supports a 64-bit
integer.
|
fread
| MATLAB | precision must be a constant.
The source and output that precision specifies
cannot have values 'long' , 'ulong' , 'unsigned
long' , 'bitn ' ,
and 'ubitn ' . You cannot use the machineformat input. If the source or output that precision specifies
is a C type, for example, int , the target and production
sizes for that type must: The source type that precision specifies
must map directly to a C type on the target hardware. If the fread call reads the entire
file, all of the data must fit in
the largest array available for code generation. If sizeA is not constant or contains
a nonfinite element, then dynamic memory allocation is required. Treats a char value for source or output as
a signed 8-bit integer. Use values between 0 and 127 only. The generated code does not report file read errors.
Write your own file read error handling in your MATLAB code.
Test that the number of bytes read matches the number of bytes that
you requested. For example:
|
freqspace
| MATLAB | — |
freqz | Signal Processing Toolbox | Does not support variable-size inputs. When called with no
output arguments, and without a semicolon at the end, freqz returns
the complex frequency response of the input filter, evaluated at 512
points. If the semicolon is added, the function produces a plot of the
magnitude and phase response of the filter. See freqz With No Output Arguments.
|
frewind
| MATLAB | — |
frnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
fseek
| MATLAB | When the MATLAB behavior differs from the C compiler
behavior, the generated code matches the C compiler behavior. Examples
include: The offset is passed to the C run-time environment
as a signed long data type. Therefore, the offset value must fit in
the long data type on the target hardware.
|
fspecial
| Image Processing Toolbox | Inputs must be compile-time constants. Expressions or
variables are allowed if their values do not change. MATLAB Function
Block support: Yes. The input arguments hsize , radius , len ,
and theta must be compile-time constants. |
fspl
| Phased Array System Toolbox | Does not support variable-size inputs. |
fstat
| Statistics and Machine Learning Toolbox | — |
ftell
| MATLAB | When the MATLAB behavior differs from the C compiler
behavior, the generated code usually matches the C compiler behavior.
For example, if you use fseek to seek past the
end of a file, the behavior of ftell in the generated
code matches the C compiler behavior. |
full
| MATLAB | — |
fwrite
| MATLAB | The precision argument must be a constant. Does not support precision types 'long' , 'ulong' ,
'unsigned long' , 'bitn ' ,
and 'ubitn ' . Does not support the machine format (order for writing
bytes) input argument. If the precision is a C type such as int ,
the target and production sizes for that type must: Treats a char type as a signed
8-bit integer. Use values from 0 through 127 only. When appending to a file and using a skip argument,
it must be possible for the C run-time fseek to
seek beyond the end of the file and initialize unwritten bytes to
0. This behavior matches the behavior of POSIX® and Windows®.
|
fzero
| MATLAB | The first argument must be a function handle. Does
not support structure or character vector inputs for the first argument. Supports up to three output arguments. Does not support
the fourth output argument (the output structure).
|
gain2aperture
| Phased Array System Toolbox | Does not support variable-size inputs. |
gamcdf
| Statistics and Machine Learning Toolbox | — |
gaminv
| Statistics and Machine Learning Toolbox | — |
gamma
| MATLAB | — |
gammainc
| MATLAB | Output is always complex. |
gammaincinv
| MATLAB | Output is always complex. |
gammaln
| MATLAB | — |
gampdf
| Statistics and Machine Learning Toolbox | — |
gamrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
gamstat
| Statistics and Machine Learning Toolbox | — |
gaspl
| Phased Array System Toolbox | Does not support variable-size inputs. |
gausswin | Signal Processing Toolbox | Allgaspl
inputs must be constant. Expressions or variables are allowed if their
values do not change. Specifying constants
|
gccphat
| Phased Array System Toolbox | Does not support variable-size inputs. |
gcd
| MATLAB | — |
ge
| MATLAB | — |
ge
| Fixed-Point Designer | |
generateCheckerboardPoints
| Computer Vision System Toolbox | Supports MATLAB Function block: No
|
genqamdemod
| Communications System Toolbox | — |
geocdf
| Statistics and Machine Learning Toolbox | — |
geoinv
| Statistics and Machine Learning Toolbox | — |
geomean
| Statistics and Machine Learning Toolbox | — |
geopdf
| Statistics and Machine Learning Toolbox | — |
geornd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
geostat
| Statistics and Machine Learning Toolbox | — |
get
| Fixed-Point Designer | |
getlsb
| Fixed-Point Designer | — |
getmsb
| Fixed-Point Designer | — |
getrangefromclass
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
gevcdf
| Statistics and Machine Learning Toolbox | — |
gevinv
| Statistics and Machine Learning Toolbox | — |
gevpdf
| Statistics and Machine Learning Toolbox | — |
gevrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
gevstat
| Statistics and Machine Learning Toolbox | — |
global2localcoord
| Phased Array System Toolbox | Does not support variable-size inputs. |
gpcdf
| Statistics and Machine Learning Toolbox | — |
gpinv
| Statistics and Machine Learning Toolbox | — |
gppdf
| Statistics and Machine Learning Toolbox | — |
gprnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
gpstat
| Statistics and Machine Learning Toolbox | — |
gradient
| MATLAB | — |
gray2bin
| Communications System Toolbox | — |
grayconnected
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
grazingang
| Phased Array System Toolbox | Does not support variable-size inputs. |
gt
| MATLAB | — |
gt
| Fixed-Point Designer | |
hadamard
| MATLAB | n must be a fixed-size scalar.
|
hamming | Signal Processing Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
hankel
| MATLAB | — |
hann | Signal Processing Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
harmmean
| Statistics and Machine Learning Toolbox | — |
hdl.RAM
| MATLAB | — |
hex2dec
| MATLAB | Does not support cell arrays. |
hex2num
| MATLAB | Does not support cell arrays. For n = hex2num(S) , size(S,2)
<= length(num2hex(0))
|
hilb
| MATLAB | — |
hist
| MATLAB | Histogram bar plotting not supported. Call with at
least one output argument. If supplied, the second argument x must
be a scalar constant. Inputs must be real.
For the syntax [nout, xout] =
hist(y,x) : When y is a fixed-size vector or
variable-length vector: nout is always
a row vector.
If x is a vector, xout is
a vector with the same orientation as x . If x is a scalar (fixed-size), xout is
a row vector.
nout and xout are
column vectors when the following conditions are true:
y is a matrix
size(y,1) and size(y,2)
do not have fixed length 1
One of size(y,1) and size(y,2)
has length 1 at run time
A variable-size x is interpreted
as a vector input even if it is a scalar at run time. If at least one of the inputs is empty, vector orientations
in the output can differ from MATLAB.
|
histc
| MATLAB | |
histeq
| Image Processing Toolbox | All the syntaxes that
include indexed images are not supported. This includes all
syntaxes that accept map as input and return newmap . If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The input argument N must be a compile-time constant. |
hom2cart | Robotics System Toolbox | Supports MATLAB Function block: Yes |
horizonrange
| Phased Array System Toolbox | Does not support variable-size inputs. |
horzcat
| Fixed-Point Designer | — |
hough
| Image Processing Toolbox | The optional parameter names 'Theta' and 'RhoResolution' must
be compile-time character vector constants. The optional Theta vector
must have a bounded size. MATLAB Function Block support:
Yes. The input argument BW must be fixed size,
the RhoResolution parameter must be a compile-time
constant, and the Theta vector must have a bounded
size. |
houghlines
| Image Processing Toolbox | The optional parameter names 'FillGap' and 'MinLength' must
be compile-time character vector constants. Their associated values
need not be compile-time constants. MATLAB Function
Block support: No. |
houghpeaks
| Image Processing Toolbox | The optional parameter names 'Threshold' and 'NHoodSize' must
be compile-time character vector constants. Their associated values
need not be compile-time constants. MATLAB Function
Block support: Yes. |
hygecdf
| Statistics and Machine Learning Toolbox | — |
hygeinv
| Statistics and Machine Learning Toolbox | — |
hygepdf
| Statistics and Machine Learning Toolbox | — |
hygernd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
hygestat
| Statistics and Machine Learning Toolbox | — |
hypot
| MATLAB | — |
icdf
| Statistics and Machine Learning Toolbox | — |
idct | Signal Processing Toolbox | Code generation for this function requires the DSP System Toolbox software. Length of transform dimension must be a power of two.
If specified, the pad or truncation value must be constant. Expressions
or variables are allowed if their values do not change. Specifying constants
|
if, elseif, else
| MATLAB | — |
idivide
| MATLAB | |
idwt
| Wavelet Toolbox | Supports MATLAB Function block: No |
idwt2
| Wavelet Toolbox | Variable-size data support must be enabled. Supports MATLAB
Function block: No |
ifft
| MATLAB | |
ifft2
| MATLAB | |
ifftn
| MATLAB | |
ifftshift
| MATLAB | — |
ifir
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
iircomb
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
iirgrpdelay
| DSP System Toolbox | |
iirlpnorm
| DSP System Toolbox | |
iirlpnormc
| DSP System Toolbox | |
iirnotch
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
iirpeak
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
im2double
| MATLAB | MATLAB Function Block support: Yes. |
im2int16
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
im2single
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
im2uint8
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
im2uint16
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imabsdiff
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
imadjust
| Image Processing Toolbox | Does not support syntaxes that include indexed images.
This includes all syntaxes that accept map as
input and return newmap . If you choose
the generic MATLAB Host Computer target platform,
generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imag
| MATLAB | — |
imag
| Fixed-Point Designer | — |
imaq.VideoDevice
| Image Acquisition Toolbox™ | Code Generation with VideoDevice System Object |
imbinarize
| Image Processing Toolbox | Character vector input arguments must be compile-time
constants. If you choose the generic MATLAB Host
Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imbothat
| Image Processing Toolbox | The input image IM must be either
2-D or 3-D image. The structuring element input argument SE must
be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imboxfilt
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
imclearborder
| Image Processing Toolbox | The optional second input argument, conn ,
must be a compile-time constant. Supports only up to 3-D inputs. If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imclose
| Image Processing Toolbox | The input image IM must be either
2-D or 3-D image. The structuring element input argument SE must
be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imcomplement
| Image Processing Toolbox | Does not support int64 and uint64 data
types. MATLAB Function Block support: Yes. |
imcrop
| Image Processing Toolbox | The interactive syntaxes, such as I2 = imcrop ,
are not supported. Indexed images are not supported, including the
noninteractive syntax X2 = imcrop(X,map,rect); . MATLAB Function
Block support: Yes. |
imdilate
| Image Processing Toolbox | The input image IM must be either
2-D or 3-D image. The SE , PACKOPT ,
and SHAPE input arguments must be a compile-time
constant. The structuring element argument SE must
be a single element—arrays of structuring elements are not
supported. To obtain the same result as that obtained using an array
of structuring elements, call the function sequentially. If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imerode
| Image Processing Toolbox | The input image IM must be either
2-D or 3-D image. The SE , PACKOPT ,
and SHAPE input arguments must be a compile-time
constant. The structuring element argument SE must
be a single element—arrays of structuring elements are not
supported. To obtain the same result as that obtained using an array
of structuring elements, call the function sequentially. If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imextendedmax
| Image Processing Toolbox | The optional third input argument, conn ,
must be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imextendedmin
| Image Processing Toolbox | The optional third input argument, conn ,
must be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imfill
| Image Processing Toolbox | The optional input connectivity, conn and
the character vector 'holes' must be compile-time
constants. Supports only up to 3-D inputs. The
interactive mode to select points, imfill(BW,0,CONN) is
not supported in code generation. locations can
be a P-by-1 vector, in which case it contains the
linear indices of the starting locations. locations can
also be a P-by-ndims(I) matrix,
in which case each row contains the array indices of one of the starting
locations. Once you select a format at compile-time, you cannot change
it at run time. However, the number of points in locations can be
varied at run time.
If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imfilter
| Image Processing Toolbox | The input image can be either 2-D or 3-D. The value of
the input argument, options , must be a compile-time
constant. If you choose the generic MATLAB Host
Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imfindcircles
| Image Processing Toolbox | All character vector input arguments and values must
be compile-time constants. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: No. |
imgaborfilt | Image Processing Toolbox | The wavelength , orientation , SpatialFrequencyBandwidth ,
and SpatialAspectRatio must be compile-time constants. The
filter bank syntax is not supported. MATLAB Function
Block support: Yes. |
imgaussfilt
| Image Processing Toolbox | Character vector input arguments must be compile-time
constants. When FilterDomain is 'spatial' ,
if you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imgradient3
| Image Processing Toolbox | Character vector input arguments must be compile-time
constants. MATLAB Function Block support: Yes. |
imgradientxyz
| Image Processing Toolbox | Character vector input arguments must be compile-time
constants. MATLAB Function Block support: Yes. |
imhist
| Image Processing Toolbox | The optional second input argument, n ,
must be a compile-time constant. In addition, nonprogrammatic syntaxes
are not supported. For example, the syntaxes where imhist displays
the histogram are not supported. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The input argument N must be a compile-time constant. |
imhmax
| Image Processing Toolbox | The optional third input argument, conn ,
must be a compile-time constant If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imhmin
| Image Processing Toolbox | The optional third input argument, conn ,
must be a compile-time constant If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imlincomb
| Image Processing Toolbox | The output_class argument must be
a compile-time constant. You can specify up to four input image arguments. If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
immse
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
imodwpt
| Wavelet Toolbox | Supports MATLAB Function block: No |
imodwt
| Wavelet Toolbox | Supports MATLAB Function block: No |
imopen
| Image Processing Toolbox | The input image IM must be either
2-D or 3-D image. The structuring element input argument SE must
be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imoverlay
| Image Processing Toolbox | If you specify the 'color' argument
as a character vector, it must be a compile-time constant. MATLAB Function
Block support: Yes. |
impyramid
| Image Processing Toolbox | The direction argument must be a compile-time
constant. MATLAB Function Block support: Yes. The
input argument direction must be a compile-time constant. |
imquantize
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
imread
| Image Processing Toolbox | Supports reading of 8-bit JPEG images only. The file
name input argument must be a valid absolute path or relative path. This
function generates code that uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The file name input argument must be a compile-time constant. |
imreconstruct
| Image Processing Toolbox | The optional third input argument, conn ,
must be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imref2d
| Image Processing Toolbox | The XWorldLimits , YWorldLimits and ImageSize properties
can be set only during object construction. When generating code,
you can only specify single objects—arrays of objects are not
supported. MATLAB Function Block support: Yes. |
imref3d
| Image Processing Toolbox | The XWorldLimits , YWorldLimits , ZWorldLimits and ImageSize properties
can be set only during object construction. When generating code,
you can only specify single objects—arrays of objects are not
supported. MATLAB Function Block support: Yes. |
imregionalmax
| Image Processing Toolbox | The optional second input argument, conn ,
must be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imregionalmin
| Image Processing Toolbox | The optional second input argument, conn ,
must be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imresize
| Image Processing Toolbox | Does not support indexed images or custom interpolation
kernels. All parameter-value pair input arguments must be compile-time
constants. MATLAB Function Block support: Yes. The
input arguments Scale and method must
be compile-time constants, and the values of the OutputSize parameter, numrows and numcols ,
must be compile-time constants. |
imrotate
| Image Processing Toolbox | The method and bbox input
argument values must be compile-time constants. If you
choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The input argument angle must be a compile-time
constant. |
imtophat
| Image Processing Toolbox | The input image IM must be either
2-D or 3-D image. The structuring element input argument SE must
be a compile-time constant. If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
imtranslate
| Image Processing Toolbox | The supports only 2-D translation vectors. 3-D translations
are not supported If you choose the generic MATLAB
Host Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The input argument translation must be a compile-time
constant. |
imwarp | Image Processing Toolbox | The geometric transformation object input, tform ,
must be either affine2d or projective2d .
Additionally, the interpolation method and optional parameter names
must be character vector constants. If you choose the
generic MATLAB Host Computer target platform, generated
code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The input argument tform must be a compile-time
constant. |
ind2sub
| MATLAB | |
inf
| MATLAB | |
inpolygon
| MATLAB | Supports single-precision and double-precision inputs,
but uses double-precision arithmetic even if all
inputs are single-precision. |
insertMarker
| Computer Vision System Toolbox | Compile-time constant input: 'Shape' and 'Color' Supports MATLAB Function block: Yes |
insertObjectAnnotation | Computer Vision System Toolbox | Supports MATLAB Function block: Yes Limitation:
Input image must be bounded, see Specify Variable-Size Data Without Dynamic Memory Allocation System Objects in MATLAB Code Generation |
insertShape
| Computer Vision System Toolbox | Compile-time constant input: 'Color' and 'SmoothEdges' Supports MATLAB Function block: Yes |
insertText
| Computer Vision System Toolbox | Compile-time constant input: Font , FontSize Supports non-ASCII characters: No Supports MATLAB Function
block: Yes
|
int8 , int16 , int32 , int64
| MATLAB | — |
int8 , int16 , int32 , int64
| Fixed-Point Designer | — |
integralBoxFilter
| Image Processing Toolbox | The 'NormalizationFactor' parameter
must be a compile-time constant. MATLAB Function
Block support: Yes. The input argument filtersize must
be a compile-time constant. |
integralImage
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
integratedLoudness
| Audio System Toolbox | Supports MATLAB Function block: Yes |
interp1
| MATLAB | Does not support the 'cubic' method.
Instead, use 'v5cubic' or 'spline' . The input argument x (sample points)
must be strictly increasing or strictly decreasing. Indices are not
reordered. If the input argument v (sample
values) is a variable-length vector (1-by-: or : -by-1),
the shape of the output vq matches the shape in MATLAB. If the input argument v is variable-size,
is not a variable-length vector, and becomes a row vector at run time,
an error occurs. If the input argument xq (query
points) is variable-size, is not a variable-length vector, and becomes
a row or column vector at run time, an error occurs. Variable-Sizing Restrictions for Code Generation of Toolbox
Functions
|
interp1q
| MATLAB | Might not match MATLAB when some Y values
are Inf or NaN . |
interp2
| MATLAB | Xq and Yq must
be the same size. Use meshgrid to evaluate on
a grid.
For best results, provide X and Y as
vectors. For the 'cubic' method, reports
an error if the grid does not have uniform spacing. In this case,
use the 'spline' method. For best results when you use the 'spline' method:
|
interp3
| MATLAB | Xq , Yq , and Zq must
be the same size. Use meshgrid to evaluate on
a grid.
For best results, provide X , Y ,
and Z as vectors. For the 'cubic' method, reports
an error if the grid does not have uniform spacing. In this case,
use the 'spline' method. For best results when you use the 'spline' method: Use meshgrid to create the inputs Xq , Yq ,
and Zq . Use a small number of interpolation points relative
to the dimensions of V . Interpolating over a large
set of scattered points can be inefficient.
|
interpn
| MATLAB | For best results, provide X1,X2,...,Xn as
vectors. Does not support the 'cubic' or 'spline' methods
for 2-D and higher interpolation. The interpolation method must be a constant character
vector.
|
intersect
| MATLAB | Does not support cell arrays for the first or second
arguments. When you do not specify the 'rows' option: Inputs A and B must
be vectors. If you specify the 'legacy' option,
inputs A and B must be row vectors. The first dimension of a variable-size row vector
must have fixed length 1. The second dimension of a variable-size
column vector must have fixed length 1. The input [] is not supported.
Use a 1-by-0 or 0-by-1 input, for example, zeros(1,0) ,
to represent the empty set. If you specify the 'legacy' option,
empty outputs are row vectors, 1-by-0, never
0-by-0.
When you specify both the 'legacy' option
and the 'rows' option, the outputs ia and ib are
column vectors. If these outputs are empty, they are 0-by-1, never
0-by-0, even if the output C is 0-by-0. When the setOrder is 'sorted' or
when you specify the 'legacy' option, the inputs
must already be sorted in ascending order. The first output, C ,
is sorted in ascending order. Complex inputs must be single or double . When one input is complex and the other input is real,
do one of the following: Code Generation for Complex Data with Zero-Valued Imaginary
Parts.
|
intfilt | Signal Processing Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
intlut
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
intmax
| MATLAB | — |
intmin
| MATLAB | — |
inv
| MATLAB | Singular matrix inputs can produce nonfinite values that
differ from MATLAB results. |
invhilb
| MATLAB | — |
ipermute
| MATLAB | |
ipermute
| Fixed-Point Designer | — |
iptcheckconn
| Image Processing Toolbox | Input arguments must be compile-time constants. MATLAB Function
Block support: Yes. |
iptcheckmap
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
iqcoef2imbal
| Communications System Toolbox | — |
iqimbal
| Communications System Toolbox | — |
iqimbal2coef
| Communications System Toolbox | — |
iqr
| Statistics and Machine Learning Toolbox | — |
isa
| MATLAB | — |
isbanded
| MATLAB | — |
iscell
| MATLAB | — |
iscellstr
| MATLAB | — |
ischar
| MATLAB | — |
iscolumn
| MATLAB | — |
iscolumn
| Fixed-Point Designer | — |
isdeployed
| MATLAB Compiler™ | |
isdiag
| MATLAB | — |
isempty
| MATLAB | — |
isempty
| Fixed-Point Designer | — |
isenum
| MATLAB | — |
isEpipoleInImage
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
isequal
| MATLAB | — |
isequal
| Fixed-Point Designer | — |
isequaln
| MATLAB | — |
isfi
| Fixed-Point Designer | — |
isfield
| MATLAB | |
isfimath
| Fixed-Point Designer | — |
isfimathlocal
| Fixed-Point Designer | — |
isfinite
| MATLAB | — |
isfinite
| Fixed-Point Designer | — |
isfloat
| MATLAB | — |
ishermitian
| MATLAB | — |
isinf
| MATLAB | — |
isinf
| Fixed-Point Designer | — |
isinteger
| MATLAB | — |
isletter
| MATLAB | |
islogical
| MATLAB | — |
ismac
| MATLAB | |
ismatrix
| MATLAB | — |
ismcc
| MATLAB Compiler | |
ismember
| MATLAB | |
isnan
| MATLAB | — |
isnan
| Fixed-Point Designer | — |
isnumeric
| MATLAB | — |
isnumeric
| Fixed-Point Designer | — |
isnumerictype
| Fixed-Point Designer | — |
isobject
| MATLAB | — |
ispc
| MATLAB | |
isprime
| MATLAB | The maximum double precision input is 2^33 . The maximum single precision input is 2^25 . The input X cannot have type int64 or uint64 .
|
isreal
| MATLAB | — |
isreal
| Fixed-Point Designer | — |
isrow
| MATLAB | — |
isrow
| Fixed-Point Designer | — |
isscalar
| MATLAB | — |
isscalar
| Fixed-Point Designer | — |
issigned
| Fixed-Point Designer | — |
issorted
| MATLAB | |
isspace
| MATLAB | |
issparse
| MATLAB | — |
isstrprop
| MATLAB | |
isstruct
| MATLAB | — |
issymmetric
| MATLAB | — |
istrellis
| Communications System Toolbox | — |
istril
| MATLAB | — |
istriu
| MATLAB | — |
isunix
| MATLAB | |
isvector
| MATLAB | — |
isvector
| Fixed-Point Designer | — |
kaiser | Signal Processing Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
kaiserord | Signal Processing Toolbox | — |
kron
| MATLAB | — |
kmeans
| Statistics and Machine Learning Toolbox | If the Start method uses random
selections, the initial centroid cluster positions might not match MATLAB. If the number of rows in X is fixed,
does not remove rows of X that contain a NaN . The cluster centroid locations in C can
have a different order than in MATLAB. In this case, the cluster
indices in idx have corresponding differences. If you provide Display , its value
must be 'off' . If you provide Streams , it must
be empty and UseSubstreams must be false . When you set the UseParallel option
to true , some computations can execute in parallel
even when Replicates is 1 . For
large data sets, when Replicates is 1 ,
consider setting the UseParallel option to true .
|
kurtosis
| Statistics and Machine Learning Toolbox | — |
lab2rgb
| Image Processing Toolbox | Character vector input arguments must be compile-time
constants. MATLAB Function Block support: Yes. |
label2idx
| Image Processing Toolbox | MATLAB Function Block support: No. |
label2rgb
| Image Processing Toolbox | Referring to the standard syntax: RGB = label2rgb(L, map, zerocolor, order) Submit at least two input arguments: the label matrix, L ,
and the colormap matrix, map . map must be an n-by-3 , double ,
colormap matrix. You cannot use a character vector containing the
name of a MATLAB colormap function or a function handle of a
colormap function.
If you set the boundary color zerocolor to
the same color as one of the regions, label2rgb will
not issue a warning. If you supply a value for order ,
it must be 'noshuffle' .
MATLAB Function Block support: Yes. |
lcm
| MATLAB | — |
lcmvweights
| Phased Array System Toolbox | Does not support variable-size inputs. |
ldivide
| MATLAB | — |
le
| MATLAB | — |
le
| Fixed-Point Designer | |
length
| MATLAB | — |
length
| Fixed-Point Designer | — |
levinson | Signal Processing Toolbox | Code generation for this function requires the DSP System Toolbox software. If specified, the order of recursion must be a constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
limiter
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
lineToBorderPoints
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
linsolve
| MATLAB | The option structure must be a constant. Supports only a scalar option structure input. It
does not support arrays of option structures. Only optimizes these cases: Other options are equivalent to using mldivide .
|
linspace
| MATLAB | — |
load
| MATLAB | Use only when generating MEX or code for Simulink simulation.
To load compile-time constants, use coder.load . Does not support use of the function without assignment
to a structure or array. For example, use S = load(filename) ,
not load(filename) . The output S must be the name of
a structure or array without any
subscripting. For example, S(i) = load('myFile.mat') is
not allowed. Arguments to load must be compile-time
constant character vectors. Does not support loading objects. If the MAT-file contains unsupported constructs, use load(filename,variables) to
load only the supported constructs. You cannot use save in a function
intended for code generation. The code generator does not support
the save function. Furthermore, you cannot use coder.extrinsic with save .
Prior to generating code, you can use save to save
the workspace data to a MAT-file. You must use coder.varsize to explicitly
declare variable-size data loaded using the load function.
|
loadCompactModel
| Statistics and Machine Learning Toolbox | Supports these classification model objects saved to
a file using saveCompactModel . For limitations on particular classification models,
see the row corresponding to the model object in this table. |
local2globalcoord
| Phased Array System Toolbox | Does not support variable-size inputs. |
log
| MATLAB | Generates an error during simulation and returns NaN in
generated code when the input value x is real,
but the output should be complex. To get the complex result, make
the input value complex by passing in complex(x) .
|
log2
| MATLAB | — |
log10
| MATLAB | — |
log1p
| MATLAB | — |
logical
| MATLAB | — |
logical
| Fixed-Point Designer | — |
logncdf
| Statistics and Machine Learning Toolbox | — |
logninv
| Statistics and Machine Learning Toolbox | — |
lognpdf
| Statistics and Machine Learning Toolbox | — |
lognrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
lognstat
| Statistics and Machine Learning Toolbox | — |
logspace
| MATLAB | — |
loudnessMeter
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB
Function block: No Dynamic Memory Allocation must
not be turned off. |
lower
| MATLAB | |
lowerbound
| Fixed-Point Designer | — |
lsb
| Fixed-Point Designer | Supported for scalar fixed-point signals only. Supported for scalar, vector, and matrix, fi single
and double signals.
|
lsqnonneg
| MATLAB | |
lt
| MATLAB | — |
lteZadoffChuSeq
| Communications System Toolbox | — |
lt
| Fixed-Point Designer | |
lu
| MATLAB | — |
mad
| Statistics and Machine Learning Toolbox | Input dim cannot be empty. |
magic
| MATLAB | Variable-Sizing Restrictions for Code Generation of Toolbox
Functions |
matchFeatures
| Computer Vision System Toolbox | Generates platform-dependent library: Yes for MATLAB host
only when using the Exhaustive method. Generates
portable C code for non-host target only when using the Exhaustive method. Generates portable C code using a C++ compiler that links
to OpenCV (Version 2.4.9) libraries when not using the Exhaustive method. Portable C Code Generation for Functions That Use OpenCV Library Compile-time constant input: 'Method‘ and 'Metric' . Supports MATLAB Function block: No
|
max
| MATLAB | |
max
| Fixed-Point Designer | — |
maxflat | Signal Processing Toolbox | Inputs must be constant. Expressions or variables are
allowed if their values do not change. Specifying constants
|
mdltest
| Phased Array System Toolbox | Does not support variable-size inputs. |
mean
| MATLAB | |
mean
| Fixed-Point Designer | N/A |
mean2
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
medfilt2
| Image Processing Toolbox | The padopt argument must be a compile-time
constant. If you choose the generic MATLAB Host
Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The neighborhood size input argument must be a compile-time constant. |
median
| MATLAB | |
median
| Fixed-Point Designer | — |
meshgrid
| MATLAB | — |
mfilename
| MATLAB | — |
min
| MATLAB | |
min
| Fixed-Point Designer | — |
minus
| MATLAB | — |
minus
| Fixed-Point Designer | |
mkpp
| MATLAB | The output structure pp differs
from the pp structure in MATLAB. In MATLAB, ppval cannot
use the pp structure from the code generator. For
code generation, ppval cannot use a pp structure
created by MATLAB. unmkpp can use a MATLAB pp structure
for code generation. To create a MATLAB pp structure from
a pp structure created by the code generator: In code generation, use unmkpp to
return the piecewise polynomial details to MATLAB. In MATLAB, use mkpp to create
the pp structure.
If you do not provide d , then coefs must
be two-dimensional and have a fixed number of columns. In this case,
the number of columns is the order. To define a piecewise constant polynomial, coefs must
be a column vector or d must have at least two
elements. If you provide d and d is 1 , d must
be a constant. Otherwise, if the input to ppval is
nonscalar, the shape of the output of ppval can
differ from ppval in MATLAB. If you provide d , it must have
a fixed length. One of the following sets of statements must be true: Suppose that m = length(d) and npieces
= length(breaks) - 1 . size(coefs,j) = d(j)
size(coefs,m+1) = npieces
size(coefs,m+2) = order j = 1,2,...,m.
The dimension m+2 must be fixed length.Suppose that m = length(d) and npieces
= length(breaks) - 1 . size(coefs,1) = prod(d)*npieces
size(coefs,2) = order The second dimension
must be fixed length.
If you do not provide d , the following
statements must be true: Suppose that m = length(d) and npieces
= length(breaks) - 1 . size(coefs,1) = prod(d)*npieces
size(coefs,2) = order The second dimension must be
fixed length.
|
mldivide
| MATLAB | — |
mnpdf
| Statistics and Machine Learning Toolbox | — |
mod
| MATLAB | Performs the arithmetic using the output class. Results
might not match MATLAB due to differences in rounding errors. If one of the inputs has type int64 or uint64 ,
then both inputs must have the same type.
|
mode
| MATLAB | |
modwpt
| Wavelet Toolbox | Supports MATLAB Function block: No |
modwptdetails
| Wavelet Toolbox | Supports MATLAB Function block: No |
modwt
| Wavelet Toolbox | Supports MATLAB Function block: No |
modwtmra
| Wavelet Toolbox | Supports MATLAB Function block: No |
moment
| Statistics and Machine Learning Toolbox | If order is nonintegral and X is
real, use moment(complex(X), order) . |
mpower
| MATLAB | If A is a 2-by-2 or larger matrix
and B is Inf or -Inf , mpower(A,B)
returns a matrix of NaNs. |
mpower
| Fixed-Point Designer | The exponent input, k ,
must be constant; that is, its value must be known at compile time. Variable-size inputs are supported only when the SumMode property
of the governing fimath is set to Specify
precision or Keep LSB . For variable-size signals, you can see different results
between MATLAB and the generated code. In generated code, the output for variable-size signals
is computed using the SumMode property of the governing fimath . In MATLAB, the output for variable-sized signals
is computed using the SumMode property of the governing fimath when
both inputs are nonscalar. However, if either input is a scalar, MATLAB computes
the output using the ProductMode of the governing fimath .
|
mpy
| Fixed-Point Designer | Code generation in MATLAB does not support the
syntax F.mpy(a,b) . You must use the syntax mpy(F,a,b) . When you provide complex inputs to the mpy function
inside a MATLAB Function block, you must declare the
input as complex before running the simulation. To do so, go to the Ports
and data manager and set the Complexity parameter
for all known complex inputs to On .
|
mrdivide
| MATLAB | — |
mrdivide
| Fixed-Point Designer | — |
MSERRegions
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes For
code generation, you must specify both the pixellist cell
array and the length of each array, as the second
input. The object outputs, regions.PixelList as
an array. The region sizes are defined in regions.Lengths . Generated code for this function uses a precompiled platform-specific shared
library. |
mtimes
| MATLAB | Multiplication of pure imaginary numbers by non-finite
numbers might not match MATLAB. The code generator does not specialize
multiplication by pure imaginary numbers—it does not eliminate
calculations with the zero real part. For example, (Inf +
1i)*1i = (Inf*0 – 1*1) + (Inf*1 + 1*0)i = NaN + Infi . Variable-Sizing Restrictions for Code Generation of Toolbox
Functions
|
mtimes
| Fixed-Point Designer | Any non-fi input
must be constant; that is, its value must be known at compile time
so that it can be cast to a fi object. Variable-sized inputs are only supported when the SumMode property
of the governing fimath is set to Specify
precision or Keep LSB . For variable-sized signals, you may see different
results between MATLAB and the generated code. In generated code, the output for variable-sized signals
is computed using the SumMode property of the governing fimath . In MATLAB, the output for variable-sized signals
is computed using the SumMode property of the governing fimath when
both inputs are nonscalar. However, if either input is a scalar, MATLAB computes
the output using the ProductMode of the governing fimath .
|
multibandParametricEQ
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports
MATLAB Function Block: Yes |
multithresh
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes.
The input argument N must be compile-time constant. |
musicdoa
| Phased Array System Toolbox | Does not support variable-size inputs. |
mvdrweights
| Phased Array System Toolbox | Does not support variable-size inputs. |
NaN or nan | MATLAB | |
nancov
| Statistics and Machine Learning Toolbox | If the input is variable-size and is [] at
run time, returns [] not NaN . |
nanmax
| Statistics and Machine Learning Toolbox | — |
nanmean
| Statistics and Machine Learning Toolbox | — |
nanmedian
| Statistics and Machine Learning Toolbox | — |
nanmin
| Statistics and Machine Learning Toolbox | — |
nanstd
| Statistics and Machine Learning Toolbox | — |
nansum
| Statistics and Machine Learning Toolbox | — |
nanvar
| Statistics and Machine Learning Toolbox | — |
nargin
| MATLAB | — |
narginchk
| MATLAB | — |
nargout
| MATLAB | Note:
This behavior also affects extrinsic calls with no
terminating semicolon. nargout is 1 for
the called function in MATLAB. |
|
nargoutchk
| MATLAB | — |
nbincdf
| Statistics and Machine Learning Toolbox | — |
nbininv
| Statistics and Machine Learning Toolbox | — |
nbinpdf
| Statistics and Machine Learning Toolbox | — |
nbinrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
nbinstat
| Statistics and Machine Learning Toolbox | — |
ncfcdf
| Statistics and Machine Learning Toolbox | — |
ncfinv
| Statistics and Machine Learning Toolbox | — |
ncfpdf
| Statistics and Machine Learning Toolbox | — |
ncfrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
ncfstat
| Statistics and Machine Learning Toolbox | — |
nchoosek
| MATLAB | When the first input, x , is a scalar, nchoosek returns
a binomial coefficient. In this case, x must be
a nonnegative integer. It cannot have type int64 or uint64 . When the first input, x , is a vector, nchoosek treats
it as a set. In this case, x can have type int64 or uint64 . The second input, k , cannot have
type int64 or uint64 . Variable-Sizing Restrictions for Code Generation of Toolbox
Functions
|
nctcdf
| Statistics and Machine Learning Toolbox | — |
nctinv
| Statistics and Machine Learning Toolbox | — |
nctpdf
| Statistics and Machine Learning Toolbox | — |
nctrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
nctstat
| Statistics and Machine Learning Toolbox | — |
ncx2cdf
| Statistics and Machine Learning Toolbox | — |
ncx2rnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
ncx2stat
| Statistics and Machine Learning Toolbox | — |
ndgrid
| MATLAB | — |
ndims
| MATLAB | — |
ndims
| Fixed-Point Designer | — |
ne
| MATLAB | You cannot use ne to test inequality
between an enumeration member and a character array or cell array
of character arrays. |
ne
| Fixed-Point Designer | |
nearest
| Fixed-Point Designer | — |
nextpow2
| MATLAB | — |
nnz
| MATLAB | — |
noiseGate
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
noisepow
| Phased Array System Toolbox | Does not support variable-size inputs. |
nonzeros
| MATLAB | — |
norm | MATLAB | — |
normcdf
| Statistics and Machine Learning Toolbox | — |
normest | MATLAB | — |
norminv
| Statistics and Machine Learning Toolbox | — |
normpdf
| Statistics and Machine Learning Toolbox | — |
normrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
normstat
| Statistics and Machine Learning Toolbox | — |
not
| MATLAB | — |
npwgnthresh
| Phased Array System Toolbox | Does not support variable-size inputs. |
nthroot
| MATLAB | — |
null
| MATLAB | |
num2hex
| MATLAB | — |
numberofelements
| Fixed-Point Designer | numberofelements will be removed
in a future release. Use numel instead.
|
numel
| MATLAB | — |
numel
| Fixed-Point Designer | — |
numerictype
| Fixed-Point Designer | Fixed-point signals coming into a MATLAB Function block
from Simulink are assigned a numerictype object
that is populated with the signal's data type and scaling information. Returns the data type when the input is a nonfixed-point
signal. Use to create numerictype objects
in the generated code. All numerictype object
properties related to the data type must be constant.
|
nuttallwin | Signal Processing Toolbox | Inputs must be constant. Expressions or variables are
allowed if their values do not change. Specifying constants
|
ocr
| Computer Vision System Toolbox | Compile-time constant input: TextLayout , Language ,
and CharacterSet . Supports MATLAB
Function block: No Generated
code for this function uses a precompiled platform-specific shared
library. |
ocrText
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
oct2dec
| Communications System Toolbox | — |
octaveFilter
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB
Function block: Yes |
ode23
| MATLAB | All odeset option
arguments must be constant. Does not support a constant mass matrix in the options
structure. Provide a mass matrix as a function . You must provide at least the two output arguments T and Y . Input types must be homogeneous—all
double or all single. Variable-sizing support must be enabled. Requires
dynamic memory allocation when tspan has two elements
or you use event functions.
|
ode45
| MATLAB | All odeset option
arguments must be constant. Does not support a constant mass matrix in the options
structure. Provide a mass matrix as a function . You must provide at least the two output arguments T and Y . Input types must be homogeneous—all
double or all single. Variable-sizing support must be enabled. Requires
dynamic memory allocation when tspan has two elements
or you use event functions.
|
odeget
| MATLAB | The name argument must be constant. |
odeset
| MATLAB | All inputs must be constant. |
offsetstrel
| Image Processing Toolbox | The 'ball' input argument and
all other input arguments must be compile-time constants. None of
the methods are supported for code generation. When generating code,
you can only specify single objects—arrays of objects are not
supported. MATLAB Function Block support: Yes. |
ones
| MATLAB | Dimensions must be real, nonnegative integers. The input optimfun must be a function
supported for code generation.
|
opticalFlowFarneback
| Computer Vision System Toolbox | Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries. Portable C Code Generation for Functions That Use OpenCV Library |
opticalFlowHS | Computer Vision System Toolbox | Supports MATLAB Function block: No |
opticalFlowLK | Computer Vision System Toolbox | Supports MATLAB Function block: No
|
opticalFlowLKDoG | Computer Vision System Toolbox | Supports MATLAB Function block: No
|
optimget
| MATLAB | Input parameter names must be constant. |
optimset
| MATLAB | Does not support the syntax that has no
input or output arguments: Functions specified in the options must be supported
for code generation. The fields of the options structure oldopts must
be fixed-size fields. For code generation, optimization functions ignore
the Display option. Does not support the additional options in an options
structure created by the Optimization Toolbox™ optimset function.
If an input options structure includes the additional Optimization Toolbox options,
the output structure does not include them.
|
ordfilt2
| Image Processing Toolbox | The padopt argument must be a compile-time
constant. If you choose the generic MATLAB Host
Computer target platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
or
| MATLAB | — |
orth
| MATLAB | |
otsuthresh
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
padarray
| Image Processing Toolbox | Support only up to 3-D inputs. Input arguments, padval and direction are
expected to be compile-time constants. MATLAB Function
Block support: Yes. The input argument padsize must
be a compile-time constant. |
pambgfun
| Phased Array System Toolbox | |
parfor
| MATLAB | |
parzenwin | Signal Processing Toolbox | Inputs must be constant. Expressions or variables are
allowed if their values do not change. Specifying constants
|
pascal
| MATLAB | — |
pca
| Statistics and Machine Learning Toolbox | Ignores the 'Display' value for 'Options' when 'Algorithm' is 'als' . If supplied, 'Weights' and 'VariableWeights' must
be real. Always returns the
fifth output explained as a column vector. Always returns the
sixth output mu as a row vector. If mu is empty, pca returns mu as
a 1-by-0 array. pca does not convert mu to
a 0-by-0 empty array. Does not treat an input matrix X that
has all NaN values as a special case.
The outputs have the sizes that they have when some of the inputs
are finite.
|
pchip
| MATLAB | Input x must be strictly increasing. Does not remove y entries with NaN values. If you generate code for the pp = pchip(x,y) syntax,
you cannot input pp to the ppval function
in MATLAB. To create a MATLAB pp structure
from a pp structure created by the code generator: In code generation, use unmkpp to
return the piecewise polynomial details to MATLAB. In MATLAB, use mkpp to create
the pp structure.
|
pdf
| Statistics and Machine Learning Toolbox | — |
peak2peak
| Signal Processing Toolbox | — |
peak2rms
| Signal Processing Toolbox | — |
pearsrnd
| Statistics and Machine Learning Toolbox | Matches MATLAB only when generated output r is
scalar. |
permute
| MATLAB | |
permute
| Fixed-Point Designer | The dimensions argument must be a built-in type; it cannot
be a fi object. |
phased.ADPCACanceller
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.AngleDopplerResponse
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.ArrayGain
| Phased Array System Toolbox | |
phased.ArrayResponse
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.BackscatterRadarTarget
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.BarrageJammer
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.BeamscanEstimator
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.BeamscanEstimator2D
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.BeamspaceESPRITEstimator
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.CFARDetector
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.CFARDetector2D
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.Collector
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.ConformalArray
| Phased Array System Toolbox | |
phased.ConstantGammaClutter
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.CosineAntennaElement
| Phased Array System Toolbox | |
phased.CrossedDipoleAntennaElement
| Phased Array System Toolbox | |
phased.CustomAntennaElement
| Phased Array System Toolbox | |
phased.CustomMicrophoneElement
| Phased Array System Toolbox | |
phased.DPCACanceller
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.ElementDelay
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.ESPRITEstimator
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.FMCWWaveform
| Phased Array System Toolbox | |
phased.FreeSpace
| Phased Array System Toolbox | |
phased.FrostBeamformer
| Phased Array System Toolbox | |
phased.GSCBeamformer
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.GCCEstimator
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.IsotropicAntennaElement
| Phased Array System Toolbox | |
phased.LCMVBeamformer
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.LOSChannel
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.LinearFMWaveform
| Phased Array System Toolbox | |
phased.MatchedFilter
| Phased Array System Toolbox | |
phased.MFSKWaveform | Phased Array System Toolbox | |
phased.MUSICEstimator
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.MUSICEstimator2D
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.MVDRBeamformer
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.MVDREstimator
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.MVDREstimator2D
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.OmnidirectionalMicrophoneElement
| Phased Array System Toolbox | |
phased.PartitionedArray
| Phased Array System Toolbox | |
phased.PhaseCodedWaveform
| Phased Array System Toolbox | |
phased.PhaseShiftBeamformer
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.Platform
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.RadarTarget
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.Radiator
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.RangeDopplerResponse
| Phased Array System Toolbox | |
phased.RectangularWaveform
| Phased Array System Toolbox | |
phased.ReceiverPreamp
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.ReplicatedSubarray
| Phased Array System Toolbox | |
phased.RootMUSICEstimator
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.RootWSFEstimator
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.ShortDipoleAntennaElement
| Phased Array System Toolbox | |
phased.STAPSMIBeamformer
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.SteeringVector
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.SteppedFMWaveform
| Phased Array System Toolbox | |
phased.StretchProcessor
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.SubbandMVDRBeamformer
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.SubbandPhaseShiftBeamformer
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.SumDifferenceMonopulseTracker
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.SumDifferenceMonopulseTracker2D
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.TimeDelayBeamformer
| Phased Array System Toolbox | |
phased.TimeDelayLCMVBeamformer
| Phased Array System Toolbox | |
phased.TimeVaryingGain
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.Transmitter
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.TwoRayChannel
| Phased Array System Toolbox | System Objects in MATLAB Code Generation |
phased.UCA | Phased Array System Toolbox | |
phased.ULA
| Phased Array System Toolbox | |
phased.URA
| Phased Array System Toolbox | |
phased.WidebandBackscatterRadarTarget
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.WidebandCollector
| Phased Array System Toolbox | |
phased.WidebandFreeSpace | Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.WidebandLOSChannel
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.WidebandRadiator
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phased.WidebandTwoRayChannel
| Phased Array System Toolbox | See System Objects in MATLAB Code Generation. |
phitheta2azel
| Phased Array System Toolbox | Does not support variable-size inputs. |
phitheta2azelpat
| Phased Array System Toolbox | Does not support variable-size inputs. |
phitheta2uv
| Phased Array System Toolbox | Does not support variable-size inputs. |
phitheta2uvpat
| Phased Array System Toolbox | Does not support variable-size inputs. |
physconst
| Phased Array System Toolbox | Does not support variable-size inputs. |
pi
| MATLAB | — |
pilotcalib
| Phased Array System Toolbox | Does not support variable-size inputs. |
pinv
| MATLAB | — |
planerot
| MATLAB | Variable-Sizing Restrictions for Code Generation of Toolbox
Functions |
plus
| MATLAB | — |
plus
| Fixed-Point Designer | |
poisscdf
| Statistics and Machine Learning Toolbox | — |
poissinv
| Statistics and Machine Learning Toolbox | — |
poisspdf
| Statistics and Machine Learning Toolbox | — |
poissrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
poisstat
| Statistics and Machine Learning Toolbox | — |
pol2cart
| MATLAB | — |
pol2circpol
| Phased Array System Toolbox | Does not support variable-size inputs. |
polellip
| Phased Array System Toolbox | Does not support variable-size inputs. |
polloss
| Phased Array System Toolbox | Does not support variable-size inputs. |
polratio
| Phased Array System Toolbox | Does not support variable-size inputs. |
polsignature
| Phased Array System Toolbox | |
poly
| MATLAB | |
polyarea
| MATLAB | — |
poly2trellis
| Communications System Toolbox | — |
polyder
| MATLAB | The output can contain fewer NaN s
than the MATLAB output. However, if the input contains a NaN ,
the output contains at least one NaN . |
polyeig
| MATLAB | The basis of the eigenvectors can be different in
the generated code than in MATLAB. In general, in the eigenvalues
output, the eigenvalues for real inputs are not sorted so that complex
conjugate pairs are adjacent. Differences in eigenvectors and ordering of eigenvalues
can lead to differences in the condition numbers output.
|
polyfit
| MATLAB | Variable-Sizing Restrictions for Code Generation of Toolbox
Functions |
polyint
| MATLAB | — |
polyval
| MATLAB | — |
polyvalm
| MATLAB | — |
pow2
| Fixed-Point Designer | — |
pow2db
| Signal Processing Toolbox | — |
power
| MATLAB | Generates an error during simulation. When both X and Y are
real, but power(X,Y) is complex, returns NaN in
the generated code. To get the complex result, make the input value X complex
by passing in complex(X) . For example, power(complex(X),Y) . Generates an error during simulation. When both X and Y are
real, but X .^ Y is complex, returns NaN in
generated code. To get the complex result, make the input value X complex
by using complex(X) . For example, complex(X).^Y .
|
power
| Fixed-Point Designer | |
ppval
| MATLAB | The size of output v does not match MATLAB when
both of the following statements are true: The code generator does not remove the singleton dimensions.
However, MATLAB might remove singleton dimensions. For
example, suppose that x is a :4-by-:5 array (the
first dimension is variable size with an upper bound of 4 and the
second dimension is variable size with an upper bound of 5). Suppose
that ppval(pp,0) returns a 2-by-3 fixed-size array. v has
size 2-by-3-by-:4-by-:5. At run time, suppose that, size(x,1) =1 and
size (x,2) = 5. In the generated code, the size(v) is [2,3,1,5]. In MATLAB,
the size is [2,3,5]. |
prctile
| Statistics and Machine Learning Toolbox | Automatic dimension restriction If the output Y is a vector, the
orientation of Y differs from MATLAB when
all of the following are true: You do not supply the dim input. X is a variable-size array.
X is not a variable-length vector.
X is a vector at run time.
The orientation of the vector X does
not match the orientation of the vector p .
In this case, the output Y matches
the orientation of X not the orientation of p .
|
predict method of ClassificationECOC and CompactClassificationECOC
| Statistics and Machine Learning Toolbox | You must call predict within a
function that you declare (that is, you cannot call predict at
the top-level). This table contains input-and-output-argument notes
and limitations. Argument | Notes
and Limitations |
Mdl | You must load the model using loadCompactModel within
a function that you declare. Must be a compile-time constant, that is, its value
cannot change while codegen generates
the C code.
|
X | Must be a single- or double-precision matrix and can
be variable sized. However, the number of columns in X must
be numel(Mdl.PredictorNames) . Rows and columns must correspond to observations and
predictors, respectively.
|
BinaryLoss | Must be a supported binary loss function name, for example, 'linear' |
NumKLInitializations | You cannot specify this name-value pair argument. |
Options | You cannot specify this name-value pair argument. |
PosteriorMethod | You cannot specify this name-value pair argument. |
Verbose | If you plan to generate a MEX file, then you can specify Verbose .
Otherwise, codegen does not support Verbose for
other file types. |
NegLoss | Returned as the same data type as X , that
is, a single- or double-precision matrix |
Posterior | You cannot return this output argument. |
|
predict method of ClassificationLinear
| Statistics and Machine Learning Toolbox | You must call predict within a
function that you declare (that is, you cannot call predict at
the top-level). This table contains input-and-output-argument notes
and limitations. Argument | Notes
and Limitations |
Mdl | You must load the model using loadCompactModel within
a function that you declare. Must be a compile-time constant, that is, its value
cannot change while codegen generates
the C code.
|
X | Must be a single- or double-precision matrix and can
be variable sized. However, the number of columns in X must
be numel(Mdl.PredictorNames) . Rows and columns must correspond to observations and
predictors, respectively.
|
Score | Returned as the same data type as X , that
is, a single- or double-precision matrix |
|
predict method of ClassificationSVM and CompactClassificationSVM
| Statistics and Machine Learning Toolbox | You must call predict within a
function that you declare (that is, you cannot call predict at
the top-level). This table contains input-and-output-argument notes
and limitations. Argument | Notes
and Limitations |
SVMModel | You must load the model using loadCompactModel within
a function that you declare. Must be a compile-time constant, that is, its value
cannot change while codegen generates
the code.
|
X | Must be a single- or double-precision matrix and can
be variable sized. However, the number of columns in X must
be numel(Mdl.PredictorNames) . Rows and columns must correspond to observations and
predictors, respectively.
|
score | Returned as the same data type as X , that
is, a single- or double-precision matrix |
|
primes
| MATLAB | The maximum double precision input is 2^32 . The maximum single precision input is 2^24 . The input n cannot have type int64 or uint64 .
|
prod
| MATLAB | |
projective2d
| Image Processing Toolbox | When generating code, you can only specify single objects—arrays
of objects are not supported. MATLAB Function Block
support: Yes. |
psi
| MATLAB | — |
psnr
| Image Processing Toolbox | MATLAB Function Block support: Yes. |
pulsint
| Phased Array System Toolbox | Does not support variable-size inputs. |
qamdemod
| Communications System Toolbox | — |
qammod
| Communications System Toolbox | — |
qmf
| Wavelet Toolbox | Supports MATLAB Function block: No |
qr
| MATLAB | — |
quad2d
| MATLAB | |
quadgk
| MATLAB | — |
quantile
| Statistics and Machine Learning Toolbox | — |
quantize
| Fixed-Point Designer | — |
quat2axang | Robotics System Toolbox | Supports MATLAB Function block: Yes |
quat2eul | Robotics System Toolbox | Supports MATLAB Function block: Yes |
quat2rotm | Robotics System Toolbox | Supports MATLAB Function block: Yes |
quat2tform | Robotics System Toolbox | Supports MATLAB Function block: Yes |
quatconj
| Aerospace Toolbox | Code generation for this function requires the Aerospace Blockset™ software. |
quatdivide
| Aerospace Toolbox | Code generation for this function requires the Aerospace Blockset software. |
quatinv
| Aerospace Toolbox | Code generation for this function requires the Aerospace Blockset software. |
quatmod
| Aerospace Toolbox | Code generation for this function requires the Aerospace Blockset software. |
quatmultiply
| Aerospace Toolbox | Code generation for this function requires the Aerospace Blockset software. |
quatnorm
| Aerospace Toolbox | Code generation for this function requires the Aerospace Blockset software. |
quatnormalize
| Aerospace Toolbox | Code generation for this function requires the Aerospace Blockset software. |
rad2deg
| MATLAB | — |
radareqpow
| Phased Array System Toolbox | Does not support variable-size inputs. |
radareqrng
| Phased Array System Toolbox | Does not support variable-size inputs. |
radareqsnr
| Phased Array System Toolbox | Does not support variable-size inputs. |
radarvcd
| Phased Array System Toolbox | |
radialspeed
| Phased Array System Toolbox | Does not support variable-size inputs. |
rainpl
| Phased Array System Toolbox | Does not support variable-size inputs. |
rand
| MATLAB | |
randg
| Statistics and Machine Learning Toolbox | — |
randi
| MATLAB | |
randn
| MATLAB | |
random
| Statistics and Machine Learning Toolbox | — |
randperm
| MATLAB | — |
randsample
| Statistics and Machine Learning Toolbox | When sampling without replacement, the order of the output
values might not match MATLAB. |
range
| Fixed-Point Designer | — |
range2beat
| Phased Array System Toolbox | Does not support variable-size inputs. |
range2bw
| Phased Array System Toolbox | Does not support variable-size inputs. |
range2time
| Phased Array System Toolbox | Does not support variable-size inputs. |
rangeangle
| Phased Array System Toolbox | Does not support variable-size inputs. |
rank
| MATLAB | — |
raylcdf
| Statistics and Machine Learning Toolbox | — |
raylinv
| Statistics and Machine Learning Toolbox | — |
raylpdf
| Statistics and Machine Learning Toolbox | — |
raylrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
raylstat
| Statistics and Machine Learning Toolbox | — |
rcond
| MATLAB | — |
rcosdesign | Signal Processing Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
rdcoupling
| Phased Array System Toolbox | Does not support variable-size inputs. |
rdivide
| MATLAB | — |
rdivide
| Fixed-Point Designer | — |
real
| MATLAB | — |
real
| Fixed-Point Designer | — |
reallog
| MATLAB | — |
realmax
| MATLAB | — |
realmax
| Fixed-Point Designer | — |
realmin
| MATLAB | — |
realmin
| Fixed-Point Designer | — |
realpow
| MATLAB | — |
realsqrt
| MATLAB | — |
reconstructScene
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
rectifyStereoImages
| Computer Vision System Toolbox | Compile-time constant input restriction: 'interp' and 'OutputView' Supports MATLAB Function block: No |
rectint
| MATLAB | — |
recursiveAR
| System Identification Toolbox | Supports MATLAB Function block:
No |
recursiveARMA
| System Identification Toolbox | Supports MATLAB Function block:
No |
recursiveARMAX
| System Identification Toolbox | Supports MATLAB Function block:
No |
recursiveARX
| System Identification Toolbox | Supports MATLAB Function block:
No |
recursiveBJ
| System Identification Toolbox | Supports MATLAB Function block:
No |
recursiveLS
| System Identification Toolbox | Supports MATLAB Function block:
No |
recursiveOE
| System Identification Toolbox | Supports MATLAB Function block:
No |
rectwin | Signal Processing Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
regionprops
| Image Processing Toolbox | Supports only 2-D images. Does not support the table
output type. Does not accept cell arrays as input—use a comma-separated
list instead. Does not support the properties ConvexArea , ConvexHull , ConvexImage , Solidity ,
and SubarrayIdx . If you choose the
generic MATLAB Host Computer target platform, generated
code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: No. |
reinterpretcast
| Fixed-Point Designer | — |
relativeCameraPose
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
rem
| MATLAB | Performs the arithmetic using the output class. Results
might not match MATLAB due to differences in rounding errors. If one of the inputs has type int64 or uint64 ,
then both inputs must have the same type.
|
removefimath
| Fixed-Point Designer | — |
repelem
| MATLAB | The input must be a vector or matrix. The input cannot
be a multidimensional array. |
repmat
| MATLAB | Size arguments must have a fixed size. |
repmat
| Fixed-Point Designer | The dimensions argument must be a built-in type; it cannot
be a fi object. |
resample | Signal Processing Toolbox | C and C++ code generation for resample requires DSP System Toolbox software. The upsampling and downsampling factors must be specified
as constants. Expressions or variables are allowed if their values
do not change. Specifying constants
|
rescale
| Fixed-Point Designer | — |
reshape
| MATLAB | |
reshape
| Fixed-Point Designer | — |
return
| MATLAB | — |
reverberator
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
rgb2gray
| MATLAB | MATLAB Function Block support: Yes. |
rgb2lab
| Image Processing Toolbox | Character vector input arguments must be compile-time
constants. MATLAB Function Block support: Yes. |
rgb2ycbcr
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
rms
| Signal Processing Toolbox | — |
rng
| MATLAB | Supports only the 'twister' , 'v5normal' ,
and 'v4' generators. Does not support the 'shuffle' input. For a MEX target: If extrinsic calls are disabled or rng is
called inside a parfor loop, the output of rng in
the MEX function is not compatible with the rng function
in MATLAB. You cannot pass the output of s = rng from
the MEX function to rng in MATLAB. If extrinsic calls are enabled and rng is
not called from inside a parfor loop, only rng can
access the data in the structure that rng returns.
|
robotics.BinaryOccupancyGrid
| Robotics System Toolbox | Supports MATLAB Function block: No |
robotics.OccupancyGrid
| Robotics System Toolbox | Supports MATLAB Function block: No |
robotics.OdometryMotionModel
| Robotics System Toolbox | Supports MATLAB Function block: No |
robotics.ParticleFilter | Robotics System Toolbox | Supports MATLAB Function block: No |
robotics.PRM
| Robotics System Toolbox | Supports MATLAB Function block: No The map input
must be specified on creation of the PRM object. |
robotics.PurePursuit | Robotics System Toolbox | Supports MATLAB Function block: No |
robotics.VectorFieldHistogram | Robotics System Toolbox | Supports MATLAB Function block: No |
rocpfa
| Phased Array System Toolbox | Does not support variable-size inputs. Supported only when output arguments are specified. The NonfluctuatingNoncoherent signal
type is not supported.
|
rocsnr
| Phased Array System Toolbox | Does not support variable-size inputs. Supported only when output arguments are specified. The NonfluctuatingNoncoherent signal
type is not supported.
|
rootmusicdoa
| Phased Array System Toolbox | Does not support variable-size inputs. |
roots
| MATLAB | |
rosser
| MATLAB | — |
rot90
| MATLAB | Does not support cell arrays for the first argument. |
rot90
| Fixed-Point Designer | In the syntax rot90(A,k) , the argument k must
be a built-in type; it cannot be a fi object. |
rotationMatrixToVector
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
rotationVectorToMatrix
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
rotm2axang
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
rotm2eul
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
rotm2quat
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
rotm2tform
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
rotx
| Phased Array System Toolbox | Does not support variable-size inputs. |
roty
| Phased Array System Toolbox | Does not support variable-size inputs. |
rotz
| Phased Array System Toolbox | Does not support variable-size inputs. |
round
| MATLAB | Supports only the syntax Y = round(X) . |
round
| Fixed-Point Designer | — |
rsf2csf
| MATLAB | — |
rsgenpoly
| Communications System Toolbox | All inputs must be constants. Expressions or variables
are allowed if their values do not change. |
rsgenpolycoeffs
| Communications System Toolbox | All inputs must be constants. Expressions or variables
are allowed if their values do not change. |
schur
| MATLAB | Can return a different Schur decomposition in generated
code than in MATLAB. |
sec
| MATLAB | — |
secd
| MATLAB | In some cases, returns -Inf when MATLAB returns Inf . In some cases, returns Inf when MATLAB returns -Inf .
|
sech
| MATLAB | — |
selectStrongestBbox
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
sensorcov
| Phased Array System Toolbox | Does not support variable-size inputs. |
sensorsig
| Phased Array System Toolbox | Does not support variable-size inputs. |
setdiff
| MATLAB | Does not support cell arrays for the first or second
arguments. When you do not specify the 'rows' option: Inputs A and B must
be vectors. If you specify the 'legacy' option,
inputs A and B must be row vectors. The first dimension of a variable-size row vector
must have fixed length 1. The second dimension of a variable-size
column vector must have fixed length 1. Do not use [] to represent the
empty set. Use a 1-by-0 or 0-by-1 input, for example, zeros(1,0) ,
to represent the empty set. If you specify the 'legacy' option,
empty outputs are row vectors, 1-by-0, never
0-by-0.
When you specify both the 'legacy' and 'rows' options,
the output ia is a column vector. If ia is
empty, it is 0-by-1, never 0-by-0,
even if the output C is 0-by-0. When the setOrder is not 'stable' or
when you specify the 'legacy' option, the inputs
must already be sorted in ascending order. The first output, C ,
is sorted in ascending order. Complex inputs must be single or double . When one input is complex and the other input is real,
do one of the following: Code Generation for Complex Data with Zero-Valued Imaginary
Parts.
|
setfimath
| Fixed-Point Designer | — |
setxor
| MATLAB | Does not support cell arrays for the first or second
arguments. When you do not specify the 'rows' option: Inputs A and B must
be vectors with the same orientation. If you specify the 'legacy' option,
inputs A and B must be row vectors. The first dimension of a variable-size row vector
must have fixed length 1. The second dimension of a variable-size
column vector must have fixed length 1. The input [] is not supported.
Use a 1-by-0 or 0-by-1 input, for example , zeros(1,0) ,
to represent the empty set. If you specify the 'legacy' option,
empty outputs are row vectors, 1-by-0, never
0-by-0.
When you specify both the 'legacy' option
and the 'rows' option, the outputs ia and ib are
column vectors. If these outputs are empty, they are 0-by-1, never
0-by-0, even if the output C is 0-by-0. When the setOrder is not 'stable' or
when you specify the 'legacy' flag, the inputs
must already be sorted in ascending order. The first output, C ,
is sorted in ascending order. Complex inputs must be single or double . When one input is complex and the other input is real,
do one of the following: Code Generation for Complex Data with Zero-Valued Imaginary
Parts.
|
sfi
| Fixed-Point Designer | |
sgolay | Signal Processing Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
shiftdim
| MATLAB | |
shiftdim
| Fixed-Point Designer | The dimensions argument must be a built-in type; it cannot
be a fi object. |
shnidman
| Phased Array System Toolbox | Does not support variable-size inputs. |
sign
| MATLAB | — |
sign
| Fixed-Point Designer | — |
sin
| MATLAB | — |
sin
| Fixed-Point Designer | — |
sind
| MATLAB | — |
single
| MATLAB | — |
single
| Fixed-Point Designer | — |
sinh
| MATLAB | — |
size
| MATLAB | — |
size
| Fixed-Point Designer | — |
skewness
| Statistics and Machine Learning Toolbox | — |
sort
| MATLAB | Does not support cell arrays for the first argument. If the input is a complex type, sort orders
the output according to absolute value. When x is
a complex type that has all zero
imaginary parts, use sort(real(x)) to compute the
sort order for real types. See Code Generation for Complex Data with Zero-Valued Imaginary
Parts.
|
sort
| Fixed-Point Designer | The dimensions argument must be a built-in type; it cannot
be a fi object. |
sortrows
| MATLAB | Does not support cell arrays for the first argument. If the input is a complex type, sortrows orders
the output according to absolute value. When x is
a complex type that has all zero
imaginary parts, use sortrows(real(x)) to compute
the sort order for real types. See Code Generation for Complex Data with Zero-Valued Imaginary
Parts.
|
sosfilt | Signal Processing Toolbox | — |
speed2dop
| Phased Array System Toolbox | Does not support variable-size inputs. |
sph2cart
| MATLAB | — |
sph2cartvec
| Phased Array System Toolbox | Does not support variable-size inputs. |
spline
| MATLAB | Input x must be strictly increasing. Does not remove Y entries with NaN values. Does not report an error for infinite endslopes in Y . If you generate code for the pp = spline(x,Y) syntax,
you cannot input pp to the ppval function
in MATLAB. To create a MATLAB pp structure
from a pp structure created by the code generator: In code generation, use unmkpp to
return the piecewise polynomial details to MATLAB. In MATLAB, use mkpp to create
the pp structure.
|
spsmooth
| Phased Array System Toolbox | Does not support variable-size inputs. |
squeeze
| MATLAB | Does not support cell arrays. |
squeeze
| Fixed-Point Designer | — |
sqrt
| MATLAB | Generates an error during simulation and returns NaN in
generated code when the input value x is real,
but the output should be complex. To get the complex result, make
the input value complex by passing in complex(x) .
|
sqrt
| Fixed-Point Designer | |
sqrtm
| MATLAB | — |
stateestimatorEKF
| System Identification Toolbox | Supports MATLAB Function block: No |
stateestimatorUKF
| System Identification Toolbox | Supports MATLAB Function block: No |
std
| MATLAB | |
steervec
| Phased Array System Toolbox | Does not support variable-size inputs. |
stereoAnaglyph
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes |
stereoParameters
| Computer Vision System Toolbox | Supports MATLAB Function block: No Use
the toStruct method
to pass a stereoParameters object into generated
code. See the Code Generation for Depth Estimation From Stereo Video example. |
stokes
| Phased Array System Toolbox | |
storedInteger
| Fixed-Point Designer | — |
storedIntegerToDouble
| Fixed-Point Designer | — |
str2double
| MATLAB | |
str2func
| MATLAB | Character vector must be constant/known at compile time. |
strcmp
| MATLAB | Does not support enumeration inputs. When one input is a cell array and the other input
is a character array, the character array must be a compile-time row
vector. When both inputs are empty character arrays that have
different sizes, returns true.
|
strcmpi
| MATLAB | Does not support enumeration inputs. Input values from the char class
must be in the range 0-127. When one input is a cell array and the other input
is a character array, the character array must be a compile-time row
vector. When both inputs are empty character arrays that have
different sizes, returns true.
|
strel
| Image Processing Toolbox | All of the input arguments must be compile-time constants.
None of the methods are supported for code generation. When generating
code, you can only specify single objects—arrays of objects
are not supported. MATLAB Function Block support:
Yes. |
stretchfreq2rng
| Phased Array System Toolbox | Does not support variable-size inputs. |
stretchlim
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
strfind
| MATLAB | Does not support cell arrays. Inputs must be character row vectors. Returns an empty output as a 1-by-0 character array.
|
strjoin
| MATLAB | Returns an empty output as a 1-by-0 character array. |
strjust
| MATLAB | |
strncmp
| MATLAB | Does not support enumeration inputs. When one input is a cell array and the other input
is a character array, the character array must be a compile-time row
vector.
|
strncmpi
| MATLAB | Does not support enumeration inputs. Input values from the char class
must be in the range 0-127. When one input is a cell array and the other input
is a character array, the character array must be a compile-time row
vector.
|
strrep
| MATLAB | Does not support cell arrays. Inputs must be character row vectors. Returns an empty output as a 1-by-0 character array.
|
strtok
| MATLAB | |
strtrim
| MATLAB | Supports only inputs from the char class.
Does not support cell arrays. Input values must be in the range 0-127. Returns an empty output as a 1-by-0 character array.
|
struct
| MATLAB | You cannot create a structure that contains a cell
array. For example, you cannot generate code for: If the value argument is a cell
array, all elements must have the
same type.
|
struct2cell
| MATLAB | For a variable-size structure array, the resulting
cell array must be homogeneous. If s is a variable-size
structure array, the fields must have the same type. If struct2cell cannot convert s to
a homogeneous cell array, the output cell array is heterogeneous.
A heterogeneous output cell array can have a maximum of 1024 elements.
|
structfun
| MATLAB | |
sub
| Fixed-Point Designer | Code generation in MATLAB does not support the syntax F.sub(a,b) .
You must use the syntax sub(F,a,b) . |
sub2ind
| MATLAB | |
subsasgn
| Fixed-Point Designer | — |
subspace
| MATLAB | — |
subsref
| Fixed-Point Designer | — |
sum
| MATLAB | |
sum
| Fixed-Point Designer | |
superpixels
| Image Processing Toolbox | Character vector input arguments must be compile-time
constants. The value of 'IsInputLab' (true or false)
must be a compile-time constant. MATLAB Function Block
support: No. |
surfacegamma
| Phased Array System Toolbox | Does not support variable-size inputs. |
surfclutterrcs
| Phased Array System Toolbox | Does not support variable-size inputs. |
SURFPoints
| Computer Vision System Toolbox | Supports MATLAB Function block: No To index
locations with this object, use the syntax: points.Location(idx,:) ,
for points object. See visionRecovertformCodeGeneration_kernel.m,
which is used in the Introduction to Code Generation with Feature Matching and Registration example. |
svd
| MATLAB | Uses a different SVD implementation
than MATLAB. Because the singular value decomposition is not
unique, left and right singular vectors might differ from those computed
by MATLAB. |
swapbytes
| MATLAB | Inheritance of the class of the input to swapbytes in
a MATLAB Function block is supported only when the
class of the input is double . For non-double inputs,
the input port data types must be specified, not inherited. |
switch, case, otherwise
| MATLAB | If all case expressions
are scalar integer values, generates a C switch statement.
At run time, if the switch value is not an integer, generates an error. When the case expressions contain noninteger or nonscalar
values, the code generator produces C if statements
in place of a C switch statement.
|
systemp
| Phased Array System Toolbox | Does not support variable-size inputs. |
tan
| MATLAB | — |
tand
| MATLAB | In some cases, returns -Inf when MATLAB returns Inf . In some cases, returns Inf when MATLAB returns -Inf .
|
tanh
| MATLAB | — |
taylortaperc
| Phased Array System Toolbox | Does not support variable-size inputs. |
taylorwin dsp.WidebandLOSChannel | Signal Processing Toolbox | Inputs must be constant Specifying constants
|
tcdf
| Statistics and Machine Learning Toolbox | — |
tf2ca
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
tf2cl
| DSP System Toolbox | All inputs must be constant.
Expressions or variables are allowed if their values do not change. |
tform2axang
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
tform2eul
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
tform2quat
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
tform2rotm
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
tform2trvec
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
thselect
| Wavelet Toolbox | Supports MATLAB Function block: No |
time2range
| Phased Array System Toolbox | Does not support variable-size inputs. |
times
| MATLAB | Multiplication of pure imaginary numbers by non-finite
numbers might not match MATLAB. The code generator does not specialize
multiplication by pure imaginary numbers—it does not eliminate
calculations with the zero real part. For example, (Inf +
1i)*1i = (Inf*0 – 1*1) + (Inf*1 + 1*0)i = NaN + Infi . |
times
| Fixed-Point Designer | Any non-fi input
must be constant; that is, its value must be known at compile time
so that it can be cast to a fi object. When you provide complex inputs to the times function
inside a MATLAB Function block, you must declare the
input as complex before running the simulation. To do so, go to the Ports
and data manager and set the Complexity parameter
for all known complex inputs to On .
|
tinv
| Statistics and Machine Learning Toolbox | — |
toeplitz
| MATLAB | — |
tpdf
| Statistics and Machine Learning Toolbox | — |
trace
| MATLAB | — |
transpose
| MATLAB | — |
transpose
| Fixed-Point Designer | — |
trapz
| MATLAB | |
triang | Signal Processing Toolbox | Inputs must be constant Specifying constants
|
triangulate
| Computer Vision System Toolbox | Supports MATLAB Function block: No |
tril
| MATLAB | |
tril
| Fixed-Point Designer | |
triu
| MATLAB | |
triu
| Fixed-Point Designer | |
trnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
true
| MATLAB | |
trvec2tform
| Robotics System Toolbox | Supports MATLAB Function block: Yes |
tstat
| Statistics and Machine Learning Toolbox | — |
tukeywin | Signal Processing Toolbox | Inputs must be constant. Specifying constants
|
typecast
| MATLAB | Value of data type argument must be lowercase. When you use typecast with inheritance
of input port data types in MATLAB Function blocks,
you can receive a size error. To avoid this error, specify the block
input port data types explicitly. Integer input or result classes must map directly
to a C type on the target hardware. The input must be a variable-length vector or a fixed-size
vector. See Variable-Sizing Restrictions for Code Generation of Toolbox
Functions The output vector always
has the same orientation as the input vector.
|
ufi
| Fixed-Point Designer | |
uint8 , uint16 , uint32 , uint64
| MATLAB | — |
uint8 , uint16 , uint32 , uint64
| Fixed-Point Designer | — |
uminus
| MATLAB | — |
uminus
| Fixed-Point Designer | — |
undistortImage
| Computer Vision System Toolbox | Compile-time constant input restriction: 'interp' and 'OutputView' Supports MATLAB Function block: No |
unidcdf
| Statistics and Machine Learning Toolbox | — |
unidinv
| Statistics and Machine Learning Toolbox | — |
unidpdf
| Statistics and Machine Learning Toolbox | — |
unidrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
unidstat
| Statistics and Machine Learning Toolbox | — |
unifcdf
| Statistics and Machine Learning Toolbox | — |
unifinv
| Statistics and Machine Learning Toolbox | — |
unifpdf
| Statistics and Machine Learning Toolbox | — |
unifrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
unifstat
| Statistics and Machine Learning Toolbox | — |
unigrid
| Phased Array System Toolbox | Does not support variable-size inputs. |
union
| MATLAB | Does not support cell arrays for the first or second
arguments. When you do not specify the 'rows' option: Inputs A and B must
be vectors with the same orientation. If you specify the 'legacy' option,
inputs A and B must be row vectors. The first dimension of a variable-size row vector
must have fixed length 1. The second dimension of a variable-size
column vector must have fixed length 1. The input[] is not supported. Use
a 1-by-0 or 0-by-1 input, for example , zeros(1,0) ,
to represent the empty set. If you specify the 'legacy' option,
empty outputs are row vectors, 1-by-0, never
0-by-0.
When you specify both the 'legacy' option
and the 'rows' option, the outputs ia and ib are
column vectors. If these outputs are empty, they are 0-by-1, never
0-by-0, even if the output C is 0-by-0. When the setOrder is not 'stable' or
when you specify the 'legacy' option, the inputs
must already be sorted in ascending order. The first output, C ,
is sorted in ascending order. Complex inputs must be single or double . When one input is complex and the other input is real,
do one of the following: Code Generation for Complex Data with Zero-Valued Imaginary
Parts.
|
unique
| MATLAB | Does not support cell arrays for the first argument. When you do not specify the'rows' option: The input A must be a vector. If
you specify the 'legacy' option, the input A must
be a row vector. The first dimension of a variable-size row vector
must have fixed length 1. The second dimension of a variable-size
column vector must have fixed length 1. The input [] is not supported.
Use a 1-by-0 or 0-by-1 input, for example, zeros(1,0) ,
to represent the empty set. If you specify the 'legacy' option,
empty outputs are row vectors, 1-by-0, never
0-by-0.
When you specify both the 'rows' option
and the 'legacy' option, outputs ia and ic are
column vectors. If these outputs are empty, they are 0-by-1, even
if the output C is 0-by-0. When the setOrder is not 'stable' or
when you specify the 'legacy' option, the input A must
already be sorted in ascending order. The first output, C ,
is sorted in ascending order. Complex inputs must be single or double .
|
unmkpp
| MATLAB | pp must be a valid piecewise polynomial
structure created by mkpp , spline ,
or pchip in MATLAB or by the code generator. Does not support pp structures
created by interp1 in MATLAB.
|
unscentedKalmanFilter
| Control System Toolbox | For more information, see Generate Code for Online State Estimation in MATLAB. Supports MATLAB
Function block: No |
unscentedKalmanFilter
| System Identification Toolbox | For more information, see Generate Code for Online State Estimation in MATLAB. Supports MATLAB
Function block: No |
unwrap
| MATLAB | Row vector input is only supported when the first
two inputs are vectors and nonscalar Performs arithmetic in the output class. Hence, results
might not match MATLAB due to different rounding errors
|
upfirdn
| Signal Processing Toolbox | Code generation for this function requires the DSP System Toolbox software. Filter coefficients, upsampling factor, and downsampling
factor must be constants. Expressions or variables are allowed if
their values do not change. Specifying constants
Variable-size inputs are not supported.
|
uplus
| MATLAB | — |
uplus
| Fixed-Point Designer | — |
upper
| MATLAB | |
upperbound
| Fixed-Point Designer | — |
upsample
| Signal Processing Toolbox | Either declare input n as constant,
or use the assert function in the calling function
to set upper bounds for n . For example, |
uv2azel
| Phased Array System Toolbox | Does not support variable-size inputs. |
uv2azelpat
| Phased Array System Toolbox | Does not support variable-size inputs. |
uv2phitheta
| Phased Array System Toolbox | Does not support variable-size inputs. |
uv2phithetapat
| Phased Array System Toolbox | Does not support variable-size inputs. |
val2ind
| Phased Array System Toolbox | Does not support variable-size inputs. |
vander
| MATLAB | — |
var
| MATLAB | |
vertcat
| Fixed-Point Designer | — |
vision.AlphaBlender
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Autocorrelator
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.BlobAnalysis
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.CascadeObjectDetector
| Computer Vision System Toolbox | Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries Portable C Code Generation for Functions That Use OpenCV Library System Objects in MATLAB Code Generation |
vision.ChromaResampler
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Convolver
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Crosscorrelator
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.DemosaicInterpolator
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.DCT
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Deinterlacer
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.DeployableVideoPlayer
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes Generated
code for this function uses a precompiled platform-specific shared
library. System Objects in MATLAB Code Generation |
vision.FFT
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.ForegroundDetector
| Computer Vision System Toolbox | Supports MATLAB Function block: No For MATLAB host
target: Generates platform-dependent library For nonMATLAB host
target: Generates portable C code System Objects in MATLAB Code Generation |
vision.GammaCorrector
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.GeometricShearer
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.HistogramBasedTracker
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.HoughLines
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.IDCT
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.IFFT
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.ImageDataTypeConverter
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.KalmanFilter
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.LocalMaximaFinder
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.MarkerInserter
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Maximum
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Median
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.MedianFilter
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Mean
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Minimum
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.PeopleDetector
| Computer Vision System Toolbox | Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries. Portable C Code Generation for Functions That Use OpenCV Library System Objects in MATLAB Code Generation |
vision.PointTracker
| Computer Vision System Toolbox | Supports MATLAB Function block: No Supports MATLAB Function block: No Generates
portable C code using a C++ compiler that links to OpenCV (Version
2.4.9) libraries. Portable C Code Generation for Functions That Use OpenCV Library System Objects in MATLAB Code GenerationSystem Objects in MATLAB Code Generation |
vision.Pyramid
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.ShapeInserter
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.StandardDeviation
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.TemplateMatcher
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.Variance
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes System Objects in MATLAB Code Generation |
vision.VideoFileReader
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes Generated
code for this function uses a precompiled platform-specific shared
library. System Objects in MATLAB Code Generation
Does
not generate code for reading compressed images on the Mac. |
vision.VideoFileWriter
| Computer Vision System Toolbox | Supports MATLAB Function block: Yes Generated
code for this function uses a precompiled platform-specific shared
library. System Objects in MATLAB Code Generation |
vitdec
| Communications System Toolbox | — |
watershed
| Image Processing Toolbox | Supports only 2-D images. Supports only 4- or 8-connectivity.
Supports only up to 65,535 regions. The output type is always uint16 . If
you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: No. |
wavedec
| Wavelet Toolbox | Supports MATLAB Function block:
No |
wavedec2
| Wavelet Toolbox | Supports MATLAB Function block:
No |
waverec
| Wavelet Toolbox | Variable-size data support must be enabled. Supports MATLAB
Function block: No |
waverec2
| Wavelet Toolbox | Variable-size data support must be enabled. Supports MATLAB
Function block: No |
wavetableSynthesizer
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB Function
Block: Yes |
wblcdf
| Statistics and Machine Learning Toolbox | — |
wblinv
| Statistics and Machine Learning Toolbox | — |
wblpdf
| Statistics and Machine Learning Toolbox | — |
wblrnd
| Statistics and Machine Learning Toolbox | Can return a different sequence of numbers than MATLAB if
either of the following is true: |
wblstat
| Statistics and Machine Learning Toolbox | — |
wden
| Wavelet Toolbox | Variable-size data support must be enabled. Supports MATLAB
Function block: No |
wdencmp
| Wavelet Toolbox | Variable-size data support must be enabled. Supports MATLAB
Function block: No |
weightingFilter
| Audio System Toolbox | System Objects in MATLAB Code Generation Supports MATLAB
Function block: Yes |
wextend
| Wavelet Toolbox | The generated code can return a column vector when MATLAB returns
a row vector if all of the following
conditions are true: TYPE specifies a 1–D extension.
Input X is a variable-size vector. Input X is not a variable-length
row vector (1-by-:).
Code generation does not produce a warning or error
message about the shape mismatch. In the output vector that the generated
code returns, the values match the values in the output vector that MATLAB returns. In
this case, to generate code that returns a row vector, pass X(:).' instead
of X . Supports MATLAB Function block:
No |
while
| MATLAB | — |
wilkinson
| MATLAB | n must be a fixed-size scalar.
|
wlanCoarseCFOEstimate
| WLAN System Toolbox™ | — |
wlanFieldIndices
| WLAN System Toolbox | — |
wlanFineCFOEstimate
| WLAN System Toolbox | — |
wlanFormatDetect
| WLAN System Toolbox | — |
wlanHTConfig
| WLAN System Toolbox | — |
wlanHTData
| WLAN System Toolbox | — |
wlanHTDataRecover
| WLAN System Toolbox | — |
wlanHTLTFChannelEstimate
| WLAN System Toolbox | — |
wlanHTLTFDemodulate
| WLAN System Toolbox | — |
wlanHTLTF
| WLAN System Toolbox | — |
wlanHTSIG
| WLAN System Toolbox | — |
wlanHTSIGRecover
| WLAN System Toolbox | — |
wlanHTSTF
| WLAN System Toolbox | — |
wlanLLTF
| WLAN System Toolbox | — |
wlanLLTFChannelEstimate
| WLAN System Toolbox | — |
wlanLLTFDemodulate
| WLAN System Toolbox | — |
wlanLSIG
| WLAN System Toolbox | — |
wlanLSIGRecover
| WLAN System Toolbox | — |
wlanLSTF
| WLAN System Toolbox | — |
wlanNonHTConfig
| WLAN System Toolbox | — |
wlanNonHTData
| WLAN System Toolbox | — |
wlanNonHTDataRecover
| WLAN System Toolbox | — |
wlanPacketDetect
| WLAN System Toolbox | — |
wlanRecoveryConfig
| WLAN System Toolbox | — |
wlanS1GConfig
| WLAN System Toolbox | — |
wlanTGacChannel
| WLAN System Toolbox | System Objects in MATLAB Code Generation |
wlanTGnChannel
| WLAN System Toolbox | System Objects in MATLAB Code Generation |
wlanVHTConfig
| WLAN System Toolbox | — |
wlanVHTData
| WLAN System Toolbox | — |
wlanVHTDataRecover
| WLAN System Toolbox | Cannot be used in MATLAB Function block |
wlanVHTLTF
| WLAN System Toolbox | — |
wlanVHTLTFChannelEstimate
| WLAN System Toolbox | — |
wlanVHTLTFDemodulate
| WLAN System Toolbox | — |
wlanVHTSIGA
| WLAN System Toolbox | — |
wlanVHTSIGARecover
| WLAN System Toolbox | — |
wlanVHTSIGBRecover
| WLAN System Toolbox | — |
wlanVHTSIGB
| WLAN System Toolbox | — |
wlanVHTSTF
| WLAN System Toolbox | — |
wlanWaveformGenerator
| WLAN System Toolbox | — |
wnoisest
| Wavelet Toolbox | Supports MATLAB Function block: No |
wthcoef
| Wavelet Toolbox | Supports MATLAB Function block: No |
wthcoef2
| Wavelet Toolbox | Supports MATLAB Function block: No |
wthresh
| Wavelet Toolbox | Supports MATLAB Function block: No |
xcorr
| Signal Processing Toolbox | Leading ones in size(x) must be constant
for every input x . If x is variable-size
and is a row vector, it must be 1-by-: . It cannot
be : -by-: with size(x,1) = 1 at run time. |
xor
| MATLAB | — |
ycbcr2rgb
| Image Processing Toolbox | If you choose the generic MATLAB Host Computer target
platform, generated code uses a precompiled, platform-specific shared
library. MATLAB Function Block support: Yes. |
yulewalk | Signal Processing Toolbox | If specified, the order of recursion must be a constant.
Expressions or variables are allowed if their values do not change. Specifying constants
|
zeros
| MATLAB | |
zp2tf
| MATLAB | — |
zscore
| Statistics and Machine Learning Toolbox | — |