User`s guide
Exporting Signals
3-73
to downsample a signal before exporting to the workspace, consider using the 
Downsample or FIR Decimation blocks. See “Converting Sample Rates and 
Frame Rates” on page 3-20 for more information about rate conversion.
The 
Save format parameter allows you to save the output in a variety of 
formats. The default is 
Array, which is also generally the most accessible 
output format. Although this format does not save a record of the sample times 
corresponding to the output samples, you can create such a record for a given 
model by selecting the 
Time option in the Workspace I/O panel of the 
Simulation Parameters dialog box. See “Performance-Related Settings” on 
page 2-13 for more information.
The following sections explain how the To Workspace block generates its 
output: 
•“Exporting a Sample-Based Signal Using the To Workspace Block” on 
page 3-73
•“Exporting a Frame-Based Signal Using the To Workspace Block” on 
page 3-76
The following two sections may also be of interest:
•“Creating Signals Using the Signal From Workspace Block” on page 3-38
•“Constructing Multichannel Sample-Based Signals” on page 3-42
Exporting a Sample-Based Signal Using the To Workspace Block
Recall that a sample-based signal with M∗N channels is represented by a 
sequence of M-by-N matrices. (The special case of M = N = 1 represents a 
single-channel signal.) When the input to the To Workspace block is a 
sample-based signal (and the 
Save format parameter is set to Array), the 
block creates an M-by-N-by-P array in the MATLAB workspace containing the 
P most recent samples from each channel. The number of pages, P, is specified 
by the 
Limit data points to last parameter. The newest samples are added at 
the back of the array.
The figure below illustrates this for a 6-by-4 sample-based signal exported to 
workspace array
A.










