필터 지우기
필터 지우기

how i discretize linear differential equations(2 or 3 order)

조회 수: 6 (최근 30일)
sarngon
sarngon 2012년 1월 30일
Hi,
i have a ode23 result ad i must change it
for ex:i have result od ode23 func. and i want to have
x[j] j=0,1,....N (jT/N) T:time interval
so how can i do it in matlab
Thanks for your help....

채택된 답변

Bård Skaflestad
Bård Skaflestad 2012년 1월 30일
I think your question is poorly posed. Do you call the ODE solver using a syntax such as the following
[t, y] = ode23(odefun, tspan, y0)
whence ode23 returns a time point vector t that is not linearly spaced but you want them to be -- i.e., such that
all(diff(t)==t(2)-t(1))
In that case I recommend you read the documentation for ode23 more carefully. It is clearly documented how to do this. See either of
doc ode23
or
help ode23

추가 답변 (0개)

카테고리

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