whdlSamplesToFrames
Convert sample stream to frame-based data
Syntax
Description
composes frame-based data from a sample stream and corresponding control signals.
The control signals indicate the validity of the samples and the boundaries of the
frames. The function calculates the maximum frame length from the input data and
control signals, and removes any idle or nonvalid samples from the data.outframes
= whdlSamplesToFrames(samples
,ctrl
)
orders the frame-based data, assuming the input samples are interleaved, when
outframes
= whdlSamplesToFrames(samples
,ctrl
,maxlen
,interleaved
)interleaved
is 1 (true
). The
interleaved
argument is valid only when each sample is
represented by multiple values. The function computes the number of values
representing each sample by comparing the length of samples
and
ctrl
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017b