Conditional Statement for an ode using the time span for plotting the graph

5 vues (au cours des 30 derniers jours)
Andrew Agada
Andrew Agada le 1 Sep 2021
Commenté : Star Strider le 2 Sep 2021
How can i write the code for this conditional statement with respect to the tspan to be used to plot the graph using ode45. gamma is a parameter in the diferential equaltion. tspan=[1 18]
gamma =1 if tspan >=7
and
gamma=0 if tspan >7
  1 commentaire
Star Strider
Star Strider le 2 Sep 2021
You posted a duplicate of this question again as how to ascribe two values to a parameter such that it will be time dependent about an hour ago.
That is absolutely not appropriate.
I deleted my answer here.
Good luck!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Tags

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by