Location: Metabolite-sensitive cross-bridge models of human atria @ 43da9c42d0f9 / twitch_analysis.m

Author:
GitHub <noreply@github.com>
Date:
2025-02-28 18:49:41+13:00
Desc:
Update README.md
Permanent Source URI:
https://staging.physiomeproject.org/workspace/d52/rawfile/43da9c42d0f959667a0da38cd4981a6e88a39786/twitch_analysis.m

function [amp,t95]=twitch_analysis(twitch,t)

    amp=max(twitch)-min(twitch);

    [pks,idx]=findpeaks(-abs(twitch-min(twitch)-amp*0.05));
    [~,i]=sort(pks,'descend');
    idx=idx(i);
    t95=abs(t(idx(2))-t(idx(1)));
    


end