User`s guide
DSP Constant
5-148
5DSP Constant
Purpose Generate a discrete-time or continuous-time constant signal.
Library DSP Sources
Description The DSP Constant block generates a signal whose value remains constant 
throughout the simulation. The 
Constant value parameter specifies the 
constant to output, and can be any valid MATLAB expression that evaluates to 
a scalar, vector, or matrix. 
When a row vector or column vector is specified for the 
Constant value 
parameter, and the 
Interpret vector parameters as 1-D check box is selected, 
the dimension of the 
Constant value vector is disregarded, and the output is a 
1-D vector. When the 
Interpret vector parameters as 1-D check box is not 
selected, the output dimension is constrained to match the 
Constant value 
dimension (row or column). When the Constant value is an M-by-N matrix 
with M > 1 and N > 1, the output is always M-by-N.
When 
Sample mode is set to Continuous, the output is a continuous-time 
signal. When 
Sample mode is set to Discrete, the Sample time and 
Frame-based output parameters are enabled, and signal has the discrete 
output period specified by the 
Sample time parameter.
When the 
Frame-based output check box is selected, the output is 
frame-based; otherwise, the output is sample-based. Because a 1-D vector 
signal cannot be frame-based, an active 
Frame-based output setting overrides 
an active 
Interpret vector parameters as 1-D setting, and the output is a 
frame-based column vector (regardless of the actual 
Constant value vector 
dimension).










