Location: Metabolite-sensitive cross-bridge models of human atria @ 9e79a891d896 / twitch_analysis.m
- Author:
- GitHub <noreply@github.com>
- Date:
- 2025-02-28 18:40:11+13:00
- Desc:
- Add files via upload
- Permanent Source URI:
- https://staging.physiomeproject.org/workspace/d52/rawfile/9e79a891d896a28b1ca8aacdf499369fbf3e1025/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
