how to input a derivative in Matlab

2 views (last 30 days)
dR/dt=-bR, R(0)=R0
logR=-bt+c
R=R0e^-bt

Accepted Answer

KSSV
KSSV on 7 Feb 2019
syms t R(t) b
eqn = diff(R,t) == -b*R ;
sol = dsolve(eqn)

More Answers (2)

Walter Roberson
Walter Roberson on 7 Feb 2019
syms R(t) R0
dR = diff( R)
eq1 = dR == -b*R
eq2 = R(0) == R0
dsolve([eqn1,eqn2])

madhan ravi
madhan ravi on 7 Feb 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!