First Order solving ODE and simulink
2 次查看(过去 30 天)
显示 更早的评论
Hello, i want to ask regarding this error. It is from solving first order and simulink. May i know where did error i did and how to solve it. Thankyou.
0 个评论
采纳的回答
Divija Aleti
2021-4-22
Hi Hassan,
Firstly, as you are defining all the variables inside the function, you do not need to pass them as the function's arguments.
Secondly, you are getting an error as you did not define the variable 'C' in your code. Have a look at the following code.
function dCdt = F_O()
t = 300;
Ce = 100;
C = 1; % Define the variable 'C' by giving it some value. As an example I gave C=1.
kLa = 0.0285;
dCdt = (kLa*Ce-C)/t;
end
Hope this helps!
Regards,
Divija
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geometry and Mesh 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!