DSP Blockset | ![]() ![]() |
Generate a ramp signal with length based on input dimensions.
Library
DSP Sources
Description
The Constant Ramp block generates the constant ramp signal
where m
is the slope specified by the scalar Slope parameter, b
is the y-intercept specified by the scalar Offset parameter.
For a matrix input, the length L
of the output ramp is equal to either the number of rows or the number of columns in the input, as determined by the Ramp length equals number of parameter. For a 1-D vector input, L
is equal to the length of the input vector. The output, y
, is always a 1-D vector.
Dialog Box
Supported Data Types
To learn how to convert to the above data types in MATLAB and Simulink, see Supported Data Types and How to Convert to Them.
See Also
Create Diagonal Matrix |
DSP Blockset |
Identity Matrix |
DSP Blockset |
DSP Constant |
DSP Blockset |
Also see the following topics:
![]() | Constant Diagonal Matrix | Convert 1-D to 2-D | ![]() |