[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: matlab compatibility of od45 with adaptive stepping
From: |
Sebastian Schöps |
Subject: |
Re: matlab compatibility of od45 with adaptive stepping |
Date: |
Sun, 11 Oct 2015 09:36:34 +0200 |
> I don't have access to matlab right now, so could
> someone please try the following and report the results?
>
> fun = @(t, x) cos (t);
> o = odeset ('AbsTol', 1e-11, 'RelTol', 1e-11);
> [t, x] = ode45 (fun, [0, 2*pi], 0, o);
> size (t), size (x)
> [t, x] = ode45 (fun, [0, pi, 2*pi], 0, o);
> size (t), size (x)
ans =
457 1
ans =
457 1
ans =
3 1
ans =
3 1
> My interpratation of the documentation is that size (t) should be [3, 1] in
> the second case ...
It seems you are right :)
- Re: matlab compatibility of od45 with adaptive stepping,
Sebastian Schöps <=
- Re: matlab compatibility of od45 with adaptive stepping, Carlo De Falco, 2015/10/11
- Re: matlab compatibility of od45 with adaptive stepping, Sebastian Schoeps, 2015/10/15
- Re: matlab compatibility of od45 with adaptive stepping, Jacopo Corno, 2015/10/15
- Re: matlab compatibility of od45 with adaptive stepping, Sebastian Schoeps, 2015/10/15
- Re: matlab compatibility of od45 with adaptive stepping, Carlo De Falco, 2015/10/11
- Re: matlab compatibility of od45 with adaptive stepping, Carlo De Falco, 2015/10/11
- Re: matlab compatibility of od45 with adaptive stepping, Carlo De Falco, 2015/10/15
- Re: matlab compatibility of od45 with adaptive stepping, Carlo De Falco, 2015/10/11