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

4 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

标签

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by