How would you write this out into matlab

1 view (last 30 days)
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 Analyst
Image Analyst on 29 Dec 2017
Edited: Image Analyst on 29 Dec 2017
Image (for convenience)
See Walter's answer below.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Dec 2017
expmt = exp(-t);
y = y0 .* expmt ./ (1 + y0 .* (expmt - 1));

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!