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

5 ビュー (過去 30 日間)
Andrew Agada
Andrew Agada 2021 年 9 月 1 日
コメント済み: Star Strider 2021 年 9 月 2 日
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 件のコメント
Star Strider
Star Strider 2021 年 9 月 2 日
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!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by