This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Ramp

Generate constantly increasing or decreasing signal

  • Library:
  • Simulink / Sources

Description

The Ramp block generates a signal that starts at a specified time and value and changes by a specified rate. The block's Slope, Start time, and Initial output parameters determine the characteristics of the output signal. All must have the same dimensions after scalar expansion.

Ports

Output

expand all

Generated output ramp signal characterized by the Slope, Start time, and Initial output parameters.

Data Types: double

Parameters

expand all

Specify the rate of change of the generated signal.

Programmatic Use

Block Parameter: slope
Type: character vector
Values: scalar
Default: '1'

Specify the time at which the block begins generating the signal.

Programmatic Use

Block Parameter: start
Type: character vector
Values: scalar
Default: '0'

Specify the initial value of the output signal.

Programmatic Use

Block Parameter: InitialOutput
Type: character vector
Values: scalar
Default: '0'

Select this check box to output a vector of length N if the Constant value parameter evaluates to an N-element row or column vector.

  • When you select this check box, the block outputs a vector of length N if the Constant value parameter evaluates to an N-element row or column vector. For example, the block outputs a matrix of dimension 1-by-N or N-by-1.

  • When you clear this check box, the block does not output a vector of length N if the Constant value parameter evaluates to an N-element row or column vector.

Programmatic Use

Block Parameter: VectorParams1D
Type: character vector
Values: 'on' | 'off'
Default: 'on'

Block Characteristics

Data Types

double

Direct Feedthrough

no

Multidimensional Signals

no

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

Introduced before R2006a