ramp

Navigation:  Language Reference > Functions > Source >

ramp

Previous pageReturn to chapter overviewNext page

Syntax

y = ramp(x);

Description

Returns a ramp signal with start time x:

time < x: y = 0

time >= x: y is time - x

Examples

x = 20, amplitude = 10;

y = amplitude*ramp(x);

Limitations

x and y must be scalars.