필터 지우기
필터 지우기

ode step

조회 수: 2 (최근 30일)
pawan kumar
pawan kumar 2011년 10월 17일
is it possible to store value in a matrix other than equations in odesolver,if any variable which is getting change in each step and being used in equation
  댓글 수: 1
Jan
Jan 2011년 10월 17일
I do not understand the question. Can you post the relevant code and mark, what you want to save?

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

답변 (1개)

Matt Tearle
Matt Tearle 2011년 10월 17일
Do you mean something like an internal variable in the rate equations? Not exactly. But why would you need this? The ode rate equations are defined in terms of t and y (and any additional parameters), so any calculations performed internally can always be reproduced after the fact. If you need to track this in order to halt execution, you can use and event (see the documentation: MATLAB -> User's Guide -> Mathematics -> Calculus -> Ordinary Differential Equations and go to Examples -> Event Location)
You can also define the 'OutputFcn' property using odeset

카테고리

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