Generate ramp signal with length based on input dimensions
y = (0:L-1)*m + b
where m is the slope specified by the scalar Slope parameter, and b is the y-intercept specified by the scalar Offset parameter.
For an unoriented vector input, L is equal to the length of the input vector. For an N-D input array, the length L of the output ramp is equal to the length of the input in the dimension specified by the Ramp length equals number of or Dimension parameter. The output, y, is always an unoriented vector.
The Main pane of the Constant Ramp block dialog appears as follows.
Specify whether the length of the output ramp is the number of rows, number of columns, or the length of the specified dimension of the input.
Specify the one-based dimension of the input array that determines the length of the output ramp.
This parameter is only visible when you select
in specified dimension for the Ramp length
equals number of parameter.
Specify the scalar slope of the ramp.
Specify the scalar y-intercept of the ramp.
The Data Types pane of the Constant Ramp block dialog appears as follows.
Specify the output data type for this block. You can select one of the following:
A rule that inherits a data type, for example,
Same as input.
A built in data type, such as
An expression that evaluates to a valid data type,
Click the Show data type assistant button to display the Data Type Assistant, which helps you set the Output data type parameter.
See Control Signal Data Types (Simulink) for more information.
Double-precision floating point
Single-precision floating point
8-, 16-, and 32-bit signed integers
8-, 16-, and 32-bit unsigned integers
This block differs from other DSP System Toolbox™ blocks
in that unless you choose
Same as input for
the Output data type parameter, the data types
of the input and the output do not need to be the same.