How would you write this out into matlab

I'm solving ODE's in Matlab and i'm having trouble with the correct way to put this equation into my code.
See image

1 Comment

Image (for convenience)
See Walter's answer below.

Sign in to comment.

 Accepted Answer

expmt = exp(-t);
y = y0 .* expmt ./ (1 + y0 .* (expmt - 1));

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!