Contiguous Copy (Obsolete)
Create discontiguous input in contiguous block of memory
Library
dspobslib
Description
Note
The Contiguous Copy block is still supported but is likely to be obsoleted in a future release.
The Contiguous Copy block copies the input to a contiguous block of memory, and passes this new copy to the output. The output is identical to the input, but is guaranteed to reside in a contiguous section of memory.
Because Simulink® software employs an efficient copy-by-reference method for propagating data in a model, some operations produce outputs with discontiguous memory locations.
Although this does not present a problem during simulation, blocks linked to versions of DSP Blockset prior to 4.0 may require contiguous inputs for code generation with the Simulink Coder™ product. When such blocks are used in a model intended for code generation, they should be preceded by the Contiguous Copy block to ensure that their inputs are contiguous.
Supported Data Types
Double-precision floating point
Single-precision floating point
Fixed point
Boolean
8-, 16-, and 32-bit signed integers
8-, 16-, and 32-bit unsigned integers
Version History
Introduced in R2008b
