how to solve Coupled equations including ODE and algebraic equations?

3 views (last 30 days)
All my variables are interdependent. How do I pass extra variables for Ode and algebraic equations?

Accepted Answer

Richard Crozier
Richard Crozier on 4 Oct 2012
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 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by