User`s guide
3 Working with Signals
3-62
Importing Signals
Although a number of signal generation blocks are available in Simulink and 
the DSP Blockset, it is very common to import custom signals from the 
MATLAB workspace as well. The following sections explain how to do this:
•“Importing a Multichannel Sample-Based Signal” on page 3-62
•“Importing a Multichannel Frame-Based Signal” on page 3-68
•“Importing WAV Files” on page 3-71
For information about creating signals, see the following sections:
•“Creating Signals Using Constant Blocks” on page 3-33
•“Creating Signals Using Signal Generator Blocks” on page 3-36
•“Creating Signals Using the Signal From Workspace Block” on page 3-38
Importing a Multichannel Sample-Based Signal
The Signal From Workspace block in the DSP Sources library is the key block 
for importing sample-based signals of all dimensions from the MATLAB 
workspace. 
The dialog box has the following parameters:
•
Signal
•Sample time
•Samples per frame
•Form output after final data value by
Use the Signal parameter to specify the name of a variable (vector, matrix, or 
3-D array) in the MATLAB workspace. You can also enter any valid MATLAB 
expressions involving workspace variables, as long as the expressions evaluate 
to a vector, matrix, or 3-D array.
The 
Samples per frame parameter must be set to 1 for sample-based output; 
any value larger that
1 produces a frame-based output. See “Importing a 
Multichannel Frame-Based Signal” on page 3-68 for more information. The 










