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

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2022-05-06 13:02:19+12:00
Desc:
Draft PASMC 0D models
Permanent Source URI:
https://staging.physiomeproject.org/workspace/7e5/rawfile/fae2d027212396d5103d15523a3d1edbe5c0273c/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);