Too many Input arguments
Mostrar comentarios más antiguos
Hi all,
Can someone please explain when it's appropriate to use ~ when inputting the function arguments. I am a bit confused about this. If there is only one input argument, why can't you just write that without using ~?
I have included the part of my code below where I keep getting the error 'too many input arguments'. For clarity, qistar and k are like constants. I have also initialized dqidt0 in a separate .m script where I run it using an odesolver. dqidt is the differential of qi with respect to time.
%Code
function dqidt= LDF(qi)
TestProcess_Parameters;
qistar = qsat* bi*P_opt^vi/(1+ bi*P_opt*vi); %Calculate Equilibrium molar loading
k =(15*Dm)/Rc^2; %Mass transfer coefficient for spherical adsorbent pellets;
dqidt = k*(qistar - qi);
end
Thanks
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Chemistry en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!