octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ode output orientation


From: Rik
Subject: Re: ode output orientation
Date: Fri, 21 Oct 2016 12:38:20 -0700

On 10/21/2016 09:33 AM, c. wrote:
> On 21 Oct 2016, at 18:20, Rik <address@hidden> wrote:
>>
>> What version of Matlab was this?  The documentation
>> http://www.mathworks.com/help/matlab/ref/ode23.html clearly states that the
>> time variable is a column vector (Nx1).  It also says that each row of the
>> output solution corresponds to an entry in t (Nx#_of_ode_vars).
> This happens only when the output is one struct rather than a set of arrays,
> the same page that you linked in the section "Output Arguments" in the 
> subsection
> labelled "sol — Structure for evaluation" (you need to click to open it)
> states that sol.x is a row vector and that each column of sol.y corresponds 
> to 
> the solution at a given time instant.

WTF? Matlab is weird sometimes.

>> If this is confirmed with a modern version of Matlab then I agree we should
>> commit a patch before the 4.2.0 release.
> I think the solution Sebastian proposes is correct, what do you think?

The approach is correct, but the patch doesn't apply cleanly to the stable
branch.  I'll write more on the bug report.

--Rik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]