Owning Class: waveform generation
Requires: MathScript RT Module
u = stepsignal(t)
u = stepsignal(t, t0)
Legacy Name: stepfun
Generates a unit step waveform defined as 0.0 for t < t0 and as 1.0 for t >= t0.
| Name | Description |
|---|---|
| t | Specifies the times at which to compute the unit step waveform. t is a vector. |
| t0 | Specifies the transition time of the step function. t0 is a real, double-precision scalar. The default is 0.0. |
| Name | Description |
|---|---|
| u | Returns the step wave at times t with the step transition at t0. |
X = -1:0.1:1;
Y = stepsignal(X);
Y2 = stepsignal(X, 0.4);
plot(X, Y, X, Y2);