- Author:
- Kenneth Tran <k.tran@auckland.ac.nz>
- Date:
- 2017-08-31 15:20:50+12:00
- Desc:
- Adding image.
- Permanent Source URI:
- https://models.cellml.org/workspace/4a2/rawfile/b09963ece3950a7e2c1256070cab0b5e13411d90/Fevents.m
function [value,isterminal,direction] = Fevents(t,y,Phase,Params)
% Locate the time when the active force equals the afterload at
% which point, the integration should stop.
[dy F_total ATPase F_net] = XBModel(t,y,Phase,Params);
value = F_net; % Detect height = 0
isterminal = 1; % Stop the integration
direction = 0; % Negative direction only
end