Redian新闻
>
MATLAB differential equation question
avatar
MATLAB differential equation question# Computation - 科学计算
b*g
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.
avatar
c*e
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.

avatar
P*S
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。