convertToFrames
Concatenate data processed as frames into sequential samples for viewing in Simulation Data Inspector
Since R2021b
Syntax
Description
convertToFrames( removes frame
buffering from the signal corresponding to the sigObj)Simulink.sdi.Signal object
sigObj, which contains data processed as frames.
convertToFrames concatenates data into sequential samples, resulting
in a signal you can analyze over the duration of the simulation instead of frame by frame.
For example, suppose sigObj is processed as a two-channel signal
consisting of 200 frames of 64 samples each. The convertToFrames
function concatenates the 200 frames into a two-channel signal containing 12800 evenly
spaced samples. You can view the converted signal in the Simulation Data Inspector in a time
plot or sparklines plot.
To convert the representation of a signal using the convertToFrames
function, the signal must have a discrete sample rate, and the sample values must be
nonscalar with fixed dimensions.
Examples
Input Arguments
Limitations
The
convertToFramesfunction does not support variable-size signals.The Simulation Data Inspector does not support converting frames for imported data.
You cannot convert a parent signal of for-each iterations to frames.
Version History
Introduced in R2021b
See Also
Objects
Functions
Topics
- Sample- and Frame-Based Concepts (DSP System Toolbox)
- Inspect Sample and Frame Rates in Simulink (DSP System Toolbox)


