Mercurial > octave
diff scripts/ode/ode15i.m @ 29025:7f103819617d
ode15i.m, ode15s.m: transpose struct output for Matlab compatibility (bug #59416)
* ode15i.m, ode15s.m: Transpose sol.x and sol.y so that it is a row vector for
Matlab compatibility.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 05 Nov 2020 07:46:50 -0800 |
parents | 9e43deb9bfc3 |
children | 1aa69571a313 |
line wrap: on
line diff
--- a/scripts/ode/ode15i.m Wed Nov 04 20:18:11 2020 -0800 +++ b/scripts/ode/ode15i.m Thu Nov 05 07:46:50 2020 -0800 @@ -261,8 +261,8 @@ varargout{1} = t; varargout{2} = y; elseif (nargout == 1) - varargout{1}.x = t; # Time stamps are saved in field x - varargout{1}.y = y; # Results are saved in field y + varargout{1}.x = t.'; # Time stamps saved in field x (row vector) + varargout{1}.y = y.'; # Results are saved in field y (row vector) varargout{1}.solver = solver; if (options.haveeventfunction) varargout{1}.xe = te; # Time info when an event occurred