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

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2022-05-06 12:56:14+12:00
Desc:
Added Reduced DI Tree
Permanent Source URI:
https://staging.physiomeproject.org/workspace/7e5/rawfile/315068011025e4ab15170d930adc62512a913149/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);