Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Not enough input arguments in line 9

1 visualizzazione (ultimi 30 giorni)
Karissa Tilbury
Karissa Tilbury il 2 Dic 2017
Chiuso: MATLAB Answer Bot il 20 Ago 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')

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by