Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Not enough input arguments in line 9

1 visualización (últimos 30 días)
Karissa Tilbury
Karissa Tilbury el 2 de Dic. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021

I am trying to solve this ODE, but don't seem to have enough input arguments, am I incorrectly indexing time? Here's the code:

t= [0:90]; %length of dialysis, 90 min, 1 min increments
A = 21000; %Surface area of membrane cm^2
K = 0.01; %mass transfer coefficient of membrane
CBio = 0.1; % inital blood creatinine concentration mg/mL
VBdot = 200; %mg/min volumetric flow rate of blood
VDdot= 300; %mg/min volumetric flow rate of dialysate
VB = 5000; % mL volume of blood
CDi = 0; % concentration of creatinine in incoming dialysate solution
CBi(t) = CBio*exp^((VBdot/VB)*(exp^((-K*A)/VBdot)-1)*t); %amount of creatitine in blood vs. time available to remove
CBo(t) = CBi(t)-CDo; % amount of creatinine in blood leaving dialysis machine
CDo= 0;
[t,CDo] = ode45(@(t,CDo) K*A*((CBi(t)-(CBi(t)-2*CDo))/ln(CBi(t)/(CBi(t)-2*CDo)))/VDdot,t,CDo);
plot(t,CDo,'0')

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by