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

Author:
GitHub <noreply@github.com>
Date:
2025-03-01 10:02:00+13:00
Desc:
Update Mmodel_2025_Human.m Fixed bug to allow user-inputted metabolites to be registered
Permanent Source URI:
https://staging.physiomeproject.org/workspace/d52/rawfile/c86fb8da1200cb2e9d11cd4513a6d3e6dbb19ead/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