User`s guide

Exporting Signals
3-77
The workspace matrix always has time running along its first (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 frame-based multichannel signal to the MATLAB workspace.
Example: Exporting a Frame-Based Signal. In the model below, the To Workspace
block exports a three-channel frame-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: 5, 5, 5, 5, 5,..., 0, 0, 0,...
sample 5
sample 6
Frame-based signal:
4 channels, 2 samples per frame
MATLAB workspace matrix, A:
4 channels
ch1 ch2 ch3 ch4
ch1 ch2 ch3 ch4
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
3
4
3
4
3
4
3
4
sample 3
sample 4
sample 1
sample 2
1
2
1
2
1
2
1
2
5
6
5
6
5
6
5
6
Three consecutive frames from a
3-channel frame-based signal
11 5
22 5
33 5
44 5
99 5
10 10 5
11 11 5
12 12 5
55 5
66 5
77 5
88 5
t=0t=4t=8