User`s guide
3 Working with Signals
3-74
The workspace array always has time running along its third (P) dimension.
Samples are saved along the P dimension whether the input is a matrix, vector,
or scalar (single channel).
The following example illustrates how the To Workspace block can be used to
export a sample-based matrix signal to the MATLAB workspace.
Example: Exporting a Sample-Based Matrix Signal. In the model below, the
To Workspace block exports a four-channel sample-based signal with the
following data:
•
Channel 1: 1, 2, 3, 4, 5,..., 100, 0, 0, 0,...
•
Channel 2: -1, -2, -3, -4, -5,..., -100, 0, 0, 0,...
•
Channel 3: 0, 0, 0, 0, 0,...
•
Channel 4: 5, 5, 5,..., 0, 0, 0,...
The first four consecutive samples are shown in the figure.
4
2
2
2
4
4
4
2
2
2
4
4
4
4
4
4
4
4
4
4
4
4
4
4
5
2
2
2
2
2
5
2
2
2
2
2
5
2
2
2
2
2
5
5
5
5
5
5
4
2
2
2
2
2
4
2
2
2
2
2
4
2
2
2
2
2
4
4
4
4
4
4
3
2
2
2
2
2
3
2
2
2
2
2
3
2
2
2
2
2
3
3
3
3
3
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
sample 2
sample 3
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
3
2
2
2
3
3
3
2
2
2
3
3
3
3
3
3
3
3
3
3
3
3
3
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
sample 4
sample 1
MATLAB workspace array, A:
6-by-4-by-P (24 channels)
Sample-based matrix signal:
6-by-4 (24 channels)