How do i add the time and mass as variables to simulate
2 ビュー (過去 30 日間)
古いコメントを表示
The concentration of insulin at any time is described by the equation:
C = C0e^(−40t/m)
where C0 is the initial concentration of insulin, t is the time in minutes, and m is the mass of the subject in kg.
My task is to simulate the insulin concentration for two people weighing 60kg and 100kg for 4 minutes in intervals of 10 seconds to then plot the graph.
Ive never seen a problem like this before so if you have any simular examples or if you could be willing to explain how i involve the masses and time it would be very helpful,
This is my code so far
C0 = 85;
Cins =@(M,t) C0*exp(-40*t./m);
M1 = 60
M2 =100
5 件のコメント
回答 (1 件)
Walter Roberson
2019 年 2 月 28 日
移動済み: Sabin
2023 年 1 月 5 日
That is not valid syntax for the assignment to M. But if you are using R2016b or later, then
M = [60; 100];
would give you useful results in C.
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!