https://se.mathworks.com/help/signal/ref/tripuls.html
tripuls - Sampled aperiodic triangle - MATLAB
This MATLAB function returns a continuous, aperiodic, symmetric, unit-height triangular pulse at the sample times indicated in array t, centered about t = 0.
sampledaperiodictrianglematlab