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

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

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개)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

제품

릴리스

R2018a

태그

질문:

2021년 9월 1일

댓글:

2021년 9월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by