User`s guide
Signal To Workspace
5-393
The Frames parameter sets the dimension of the output array to 2-D or 3-D for
frame-based inputs. The block ignores this parameter for 1-D and
sample-based inputs. The
Frames parameter has the following two settings:
•
Log frames separately (3-D array): Given an M-by-N frame-based input
signal, the block outputs an M-by-N-by-K array, where K is the number of
frames logged by the end of the simulation. (K is bounded above by the
Limit
data points to last
parameter.) Each input frame is an element of the 3-D
array. (See “Example 2: Frame-Based Inputs” on page 5-395.)
•
Concatenate frames (2-D array): Given an M-by-N frame-based input
signal with frame size f, the block outputs a (K
∗f)-by-N matrix, where K∗f is
the number of samples acquired by the end of the simulation. Each input
frame is vertically concatenated to the previous frame to produce the 2-D
array output. (See “Example 2: Frame-Based Inputs” on page 5-395.)
Signal to Workspace always logs sample-based input data as 3-D arrays,
regardless of the
Frame parameter setting. Given an M-by-N sample-based
signal, the block outputs an M-by-N-by-L array, where L is the number of
samples logged by the end of the simulation (L is bounded above by the
Limit
data points to last
parameter). Each sample-based matrix is an element of the
3-D array. (See “Example 1: Sample-Based Inputs” on page 5-394.)
For 1-D vector inputs, the block outputs a 2-D matrix regardless of the setting
of
Frame. For a length-N 1-D vector input, the block outputs an L-by-N matrix.
Each input vector is a row of the output matrix, vertically concatenated to the
previous vector.
Output Dimension Summary
The following table summarizes the output array dimensions for various block
inputs. In the table, f is the frame size of the input, K is the number of frames
acquired by the end of the simulation, and L is the number of samples acquired
by the end of the simulation (K and L are bounded above by the
Limit data
points to last
parameter).
Input Signal Type Signal To Workspace Output Dimension
Sample-based M-by-N matrix M-by-N-by-L array
Length-N 1-D vector L-by-N matrix