Not Enough Input Arguments
6 次查看(过去 30 天)
显示 更早的评论
I am running a reversible Michaelis-Menten equation and keep getting the "mm requires more input arguments to run" error. Here is my code:
function [ dydt ] = mm( t, y, km1, kp1, km2, kp2)
clc
%MM derivatives for Michaelis Menten kinetics
% MM kinetics: % a + e <==> c
% c <==> e + b
a = y(1);
e = y(2);
c = y(3);
b = y(4);
dydt = [ -(km1 * a * e) + (kp1 * c); %concen a
-(km1 * a * e) + (kp1 * c) + (km2 * c) - (e * b * kp2); %concen e
(km1 * a * e) - (kp1 * c) - (km2 * c) + (kp2 * e * b); %concen c
(km2 * c) - (e * b * kp2); %concen b
];
km1&2 are forward rate constants and kp1&2 are the backwards rate constants
Thank you for the help!
0 个评论
回答(1 个)
KSSV
2021-11-19
It seems you are straigh away running the function using run button or without providing the inputs. You need to define the inputs and then call the function.
% define your input variables
t = value ; % give your value
y = value ;
km1 = value ;
kp1 = value ;
km2 = value ;
kp2 = value ;
% Now call the function
dydt = mm( t, y, km1, kp1, km2, kp2) ;
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PSK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!