Location: Peripheral airways matlab/CellML @ d5ff515c4729 / Peripheral_matlab_Crossbridge / triangle.m

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2022-05-16 16:33:40+12:00
Desc:
Simple ftu for gas exchange Bental, Lambert
Permanent Source URI:
https://staging.physiomeproject.org/workspace/7e5/rawfile/d5ff515c472999f862521b53b22950b63ec44995/Peripheral_matlab_Crossbridge/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);