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

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2022-04-29 10:49:49+12:00
Desc:
Adding cross-bridge DI working model
Permanent Source URI:
https://staging.physiomeproject.org/workspace/7e5/rawfile/231928ae37dcd5eeda4e48113b576d08ef94cfd4/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);