DSP Blockset
  Go to block:
    Search    Help Desk 
Difference    See Also

Compute the element-to-element difference along a vector.

Library

Vector Functions, in Math Functions

Description

The Difference block computes the difference between successive vector elements. That is, for an input vector u of length N,

or

The output is a vector of length N-1. A matrix input, u, is treated as a vector, u(:).

Note
If you expect to generate code for the Difference block using the Real-Time Workshop, you should ensure that inputs are contiguous in memory. See the Contiguous Copy block for more information.

Dialog Box

See Also

Cumulative Sum
diff (MATLAB)


[ Previous | Help Desk | Next ]