|
From: | John Donoghue |
Subject: | Re: Octave-maintainers Digest, Vol 92, Issue 43 |
Date: | Mon, 11 Nov 2013 18:28:28 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
On 11/11/2013 05:22 PM,
address@hidden wrote:
Message: 6 Date: Mon, 11 Nov 2013 13:31:10 -0800 (PST) From: PhilipNienhuis <address@hidden> To: address@hidden Subject: Re: Matlab reshape behavior Message-ID: <address@hidden> Content-Type: text/plain; charset=us-ascii Rik-4 wrote11/11/13 Could someone verify what Matlab does with a single input to reshape? --- Code --- x = 1:3; y = reshape (x, 3) --- End Code --- Octave running on Linux expands the the '3' to '3x1', but Octave running on MinGW interprets '3' to be '3x0'.3 x 0? Not here: Octave cross compiled on Fedora box, and
running on Windows 7: >> x = 1:3;y = reshape (x, 3) error: reshape: can't reshape 1x3 array to 3x0
array >> Octave native compiled and run on the same
Windows 7 machine: >> x = 1:3;y = reshape (x, 3) y = 1 2 3 >> |
[Prev in Thread] | Current Thread | [Next in Thread] |