MATLAB: How to solve dm/dt = R(1-A) – B (A) in MATLAB

equation

I have this equation:
dm/dt = R(1-A) - B (A)
I need to solve A when:
dmdt= 0
R =0.1
B= 0.2
I am able to solve it by hand, but how can I solve this problem in MATLAB? Can I set this as a function?

Best Answer

If you have the symbolic toolbox,
syms A
R = 0.1
B = 0.2
Asol = solve( R*(1-A)-B*A, A)