Engee documentation

tripuls

Discretized aperiodic triangle.

Library

EngeeDSP

Syntax

Function call

  • y = tripuls(t) — returns a continuous, aperiodic, symmetrical triangular pulse of unit height with sampling periods specified in the array t, centered around t = 0.

  • y = tripuls(t,tw) — generates a triangle width tw.

  • y = tripuls(t,tw,skew) — generates a triangle width tw and the slope skew.

Arguments

Input arguments

# t — sampling periods

+ vector

Details

The sampling periods of a single triangular pulse, given as a vector.

Data types

Float32, Float64

# tw is the width of the triangle

+ 1 (by default) | positive number

Details

The width of the triangle, set as a positive number.

Data types

Float32, Float64

# skew — the slope of the triangle

+ 0 (by default) | real number

Details

The slope of a triangle, given as a real number such that skew . When the argument skew equal to 0, the function generates a symmetrical triangular pulse.

Data types

Float32, Float64

Output arguments

# y is a triangular pulse

+ vector

Details

A triangular pulse of unit amplitude, returned as a vector.