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

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2021-06-29 14:36:26+12:00
Desc:
updated working agonist driven FTU
Permanent Source URI:
http://models.cellml.org/workspace/6b0/rawfile/f517ddde5404c765afb80b982714243bc9eddcf6/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);