Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cody2 authored Jun 30, 2022
1 parent 4275fca commit 96dbc05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ICsolvers/N803_single.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% N803_single.m - solves model for 1 cohort
%
% /--------------------------------------------------------------\
% | Date: 06/27/2022 |
% | Date: 06/29/2022 |
% | Author: Jonathan Cody |
% | Affiliation: Purdue University |
% | Weldon School of Biomedical Engineering |
Expand Down Expand Up @@ -33,7 +33,10 @@
% OPTIONS
% ========================================================================
%
% varargin = cell vector used to add optional inputs (see 'N803_model_2')
% All additional inputs will be passed as a cell vector to 'N803_model_2'
% and used to define options (see function for list)
% EX: N803_single(SoluTimes,DoseTimes,AllPars,'AbsTol',1e-2}
% will set ode solver absolute tolerance to 1e-2
%
%% ========================================================================
% OUTPUTS
Expand Down Expand Up @@ -188,7 +191,7 @@
Yic = [ Vi E0 E B0 B 0 0 1 1 ] ;

if any( [ Yic aE0 aB0 p0 gE0 gB0 sE sB ] < 0 )
error('Negative parameters or initial values.')
error('Negative parameters or initial values.')
end

Y_OUT = N803_model_2(SoluTimes,DoseTimes,Pars,Yic,varargin) ;
Expand Down

0 comments on commit 96dbc05

Please sign in to comment.