Domanda

Ho il seguente ODE:

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

dove K15 e K16 sono delle costanti.

Qualche idea su come risolverlo?

Grazie! Amit

È stato utile?

Soluzione

Questo è un primo ODE ordine. C'è una soluzione analitica per esso (basta usare un fattore di integrazione). Nessuna integrazione richiesto. http://www.math.hmc.edu/calculus/tutorials/odes/

Tuttavia, se si vuole risolvere in MATLAB:

>> 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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top