Engee documentation

tripuls

Page in progress.

Discretized aperiodic triangle.

Library

EngeeDSP

Syntax

Function call

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

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

  • 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.

Arguments

Input arguments

# t — sampling periods
Arbitrary type

Details

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

Data types

Float32, Float64

# tw — triangle width
Arbitrary type

Details

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

Data types

Float32, Float64

# skew — the slope of the triangle
Arbitrary type

Details

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

Data types

Float32, Float64

Output arguments

# y — triangular pulse

Details

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