b*****g 发帖数: 38 | 1 I have an equation:
dz/dt = (1-z)-S(t)z
How to solve it using MATLAB?
Seems pretty easy, but I can't get the correct wave shape. So frastrated.
Anyone can help me. Thank you. | c*******e 发帖数: 8624 | 2 Depends on the boundary conditions
if z @ t=0 and z' @ t=0 are defined, just go straightforward.
if z @ t=0 and z @ t=T are defined, using shooting method.
【在 b*****g 的大作中提到】 : I have an equation: : dz/dt = (1-z)-S(t)z : How to solve it using MATLAB? : Seems pretty easy, but I can't get the correct wave shape. So frastrated. : Anyone can help me. Thank you.
| P****S 发帖数: 2286 | 3
It is first order ODE and only needs one initial condition. For example if you
know z(0), then z'(0)=(1-z(0))-S(0)*z(0).
Matlab has ODE solvers.You can read the Users Guide for details. You can also
develop your own solver.
【在 c*******e 的大作中提到】 : Depends on the boundary conditions : if z @ t=0 and z' @ t=0 are defined, just go straightforward. : if z @ t=0 and z @ t=T are defined, using shooting method.
|
|