how to solve Coupled equations including ODE and algebraic equations?

1 次查看(过去 30 天)
All my variables are interdependent. How do I pass extra variables for Ode and algebraic equations?

采纳的回答

Richard Crozier
Richard Crozier 2012-10-4
Well, the error says it all, you don't define EVI in the function trial.m, it's not passed in as a variable anywhere, and its not declared as a global. Therefore you get an error EVI not defined. Same for VI.
See the docs on ode45 etc. for the standard method of how to pass in extra variables to the ode solvers.
  4 个评论
Richard Crozier
Richard Crozier 2012-10-8
By the way, you should have left the question as it was, now others looking up the same question won't understand the answer. Start a new question for a new (better defined) problem.

请先登录,再进行评论。

更多回答(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