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

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2021-09-01 13:35:00+12:00
Desc:
Added coupled USMC model maggio + Bursztyn model
Permanent Source URI:
http://models.cellml.org/workspace/6b0/rawfile/7863a08ae43627665fd6f9513f1e4e67dc175b34/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);