rectangle

Returns a rectangular pulse with the width n.

Arguments

  1. Input vector or matrix
  2. Positive value n ,width of pulse

Output

Resulting vector or matrix

Examples

rectangle