MATLAB Answers


ODE with dependent parameters

Asked by Gerrit
on 25 Jan 2013

Hi everybody, I want to solve a system like the one below:

[dA/dt dB/dt]=( c1 c2 ; c3 c4+f(A) )*(A B)

f is of the form f=A/(A+q)

The problem is that I cannot easily reduce the function to coefficients. I want to use ode45 for this problem, and I just want to update the coefficient every timestep. I can program this myself, but for the large system I have to solve that would be a lot of work, and ode45 is easily able to solve large systems. Is there a method to do this?

Thanks! Gerrald

  1 Comment

What is "(A B)"? Which coefficient do you want to change in every timestep? Which dimensions have A and B?

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!