Location: 12 L Platform 1 model codes @ 55efde1e181f / USMC / Maggio2012 / triangle.m

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2021-10-11 21:47:30+13:00
Desc:
Peripheral airway pseudo-BG
Permanent Source URI:
https://models.physiomeproject.org/workspace/6b0/rawfile/55efde1e181fb28eb5ec12c06d40e63dfe2ca938/USMC/Maggio2012/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);