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

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2021-09-10 12:27:53+12:00
Desc:
cleaned up units
Permanent Source URI:
http://models.cellml.org/workspace/6b0/rawfile/a785dbdc9165004974aa42bed7e475bb85408ac0/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);