first order linear differential equation

조회 수: 3 (최근 30일)
TT
TT 2015년 6월 13일
댓글: TT 2015년 6월 13일
Does anybody know, how we can write a code to solve a specific ODE?
Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2015년 6월 13일
Have a look at the documentation for ode45().
Generally speaking you provide a function handle to a function in two parameters, the first of which is time. The second parameter is generally a vector the same length as the number of derivatives involved, and provides the boundary condition values at the initial time (I do not know yet how to handle the situation where the boundary conditions are stated in terms of different times.) The function should return the derivatives at the current time.
See the documentation for examples.
  댓글 수: 1
TT
TT 2015년 6월 13일
Dear Roberson,
First of all, thanks for your answer. However, the problem wants us not to use any MATLAB function! I don't know how can I code and even if I code how can I get answers without ODE function?!
Regards

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by