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

Author:
GitHub <noreply@github.com>
Date:
2025-03-01 10:03:20+13:00
Desc:
Update run_human_Ca_transient.m Allow modifications of metabolite inputs in the simulation
Permanent Source URI:
https://staging.physiomeproject.org/workspace/d52/rawfile/9a262bc51ffb5d1a92f37d941c0a4e235d010186/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