| 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
y = (0:L-1)*m + b
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
See Also
| Create Diagonal Matrix |
DSP Blockset |
| Identity Matrix |
DSP Blockset |
| DSP Constant |
DSP Blockset |
See Creating Signals Using Constant Blocks for related information.
| Constant Diagonal Matrix | Contiguous Copy | ![]() |