[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ode45 issue: dimension mismatch
From: |
Tweety |
Subject: |
ode45 issue: dimension mismatch |
Date: |
Tue, 6 Feb 2018 12:07:49 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Dear all,
For my first time, I am trying to solve a differential equation using
ode45. My code looks like this:
clear; clc;
t = linspace(0,400,401);
x0 = [0, 0];
function f = dx(x,t)
M = 2.933e-5;
m = 0.158;
n = 1.26;
dx = M*x^m(1-x)^n;
endfunction
[t,x] = ode45(@dx, t, x0);
The error I get is a dimension mismatch and I do not understand a
mismatch between which parameters.
Can this function be solved by ode45 at all or should I use a different
solver or bring the function to a different form? If so, which? I
appreciate any kind of information.
Thanks,
Jan
- ode45 issue: dimension mismatch,
Tweety <=
- Re: ode45 issue: dimension mismatch, Carlo De Falco, 2018/02/06
- Re: ode45 issue: dimension mismatch, Tweety, 2018/02/06
- Re: ode45 issue: dimension mismatch, Sergei Steshenko, 2018/02/06
- Re: ode45 issue: dimension mismatch, Svetlana Tkachenko, 2018/02/07
- Re: ode45 issue: dimension mismatch, Thomas D. Dean, 2018/02/07
- Re: ode45 issue: dimension mismatch, Tweety, 2018/02/07
- Re: ode45 issue: dimension mismatch, Sebastian Schöps, 2018/02/07
- Re: ode45 issue: dimension mismatch, Carlo De Falco, 2018/02/07
- Re: ode45 issue: dimension mismatch, gciriani, 2018/02/07