User`s guide
3 Working with Signals
3-66
As the figure above suggests, the output of the Signal From Workspace block 
can only be a valid sample-based signal (having M
∗N independent channels) if 
the M-by-N-by-P workspace array
A in fact represents M∗N independent 
channels, each having P samples. In other words, the workspace array must be 
oriented to have time running along its third (P) dimension.
When the block has output all of the pages available in the specified array, it 
can start again at the beginning of the array, or simply repeat the final page 
(or generate zero-matrices) until the end of the simulation. This behavior is 
controlled by the 
Form output after final data value by parameter. See the 
Signal From Workspace reference page for more information.
The following example illustrates how the Signal From Workspace block can be 
used to import a sample-based matrix signal into a model.
Example: Importing a Sample-Based Matrix Signal. In the model below, the Signal 
From Workspace imports 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,...
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 4
sample 3
sample 2
Sample-based matrix signal:
24 channels 
MATLAB workspace array, A:
24 channels, 1 sample each
sample 1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
4
4
2
2
2
2
4
4
2
2
2
2
4
4
4
4
4
4
4
4
4
4
4
4
3
3
2
2
2
2
3
3
2
2
2
2
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










