Too many Input arguments
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Chemistry in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!