Location: Peripheral airways matlab/CellML @ 30e6db7fb82a / Peripheral_matlab_Crossbridge / Reduced_DI_tree / triangle.m

Author:
aram148 <42922407+aram148@users.noreply.github.com>
Date:
2022-07-26 11:49:42+12:00
Desc:
updated documentation and renamed model
Permanent Source URI:
https://models.fieldml.org/workspace/7e5/rawfile/30e6db7fb82a9bb715b0121cdfc131c19e5cb2ff/Peripheral_matlab_Crossbridge/Reduced_DI_tree/triangle.m

% The usage is the same as sin(2*pi*f*t)
function y = triangle(t)
y = abs(mod((t+pi)/pi, 2)-1);