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