Frage

Ich habe folgende ODE:

b'(t) + k16*b(t) = k15*a(t)

wo k15 und k16 Konstanten sind.

Jede Idee, wie es zu lösen?

Danke! Amit

War es hilfreich?

Lösung

Das ist eine erste Ordnung ODE. Es gibt eine analytische Lösung für sie (nur einen Integrationsfaktor verwenden). Keine Integration erforderlich. http://www.math.hmc.edu/calculus/tutorials/odes/

Wenn Sie jedoch wollen, dass es in MATLAB lösen:

>> k15 = 0.2; k16 = 0.3; % type your constants here
>> a = @(t) t^2; % type your expression for a here
>> dbdt = @(t,b) -k16*b + k15*a(t);
>> tf = 10; % final time of integration
>> b0 = 1; % initial value of b
>> [t,y] = ode45(@dbdt,[0 tf],b0)
>> plot(t,y) % display solution.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top