how to solve the error "Not enough input arguments."
i have saved file as fick.m
function dydt = Fick(t,C,V,Ji,Je,J2i,J2e,tmax,Cinit)dydt = (Ji(t,C)-Je(t,C)+J2i(t,C)-J2e(t,C))./V;end
below file as practical.m
%%One Compartmental Model
clear allclf % comment out if you want to use the increment tool
% set parameter values
V = 500; % litres water
Cin = 0.2; % mg chemical per litre water
Qi = 50; % litres of water per day
Qe = Qi; % equal volume flow rate
Cinit = 0; % no chemical in tank at time 0
tmax = 30; % time range over which to solve model (days)
% solve the differential equation
sol = ode45(@Fick,[0 tmax],Cinit,[],V,Ji,Je,J2i,J2e);tstep = 0.01;tspan = 0:tstep:tmax;y = deval(sol,tspan);plot(tspan,y)xlabel('time (days)');ylabel('Concentration (mg/l)');*but i am getting following error..*Error using Fick (line 2)Not enough input arguments.
Best Answer