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 commentaire

Image Analyst
Image Analyst le 29 Déc 2017
Modifié(e) : Image Analyst le 29 Déc 2017
Image (for convenience)
See Walter's answer below.

Connectez-vous pour commenter.

 Réponse acceptée

Walter Roberson
Walter Roberson le 29 Déc 2017
expmt = exp(-t);
y = y0 .* expmt ./ (1 + y0 .* (expmt - 1));

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by