Discrete

DiscreteDerivative Block

Discrete-time derivative. Computes the rate of change: (u[n] - u[n-1]) / Ts.

Open DiscreteDerivative in BlockWerk →

# DiscreteDerivative Block

Description

Computes the discrete-time derivative (backward difference) of the input signal. Outputs zero on the first sample.

Mathematical Model

y[n] = (u[n] - u[n-1]) / T
y[0] = 0

where y[n] is the current output, u[n] the current input, and T the sample time.

Parameters

sampleTime

Discrete sample period (seconds).

Remarks

See Also