octave-maintainers
[Top][All Lists]
Advanced

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

Re: Matlab reshape behavior


From: Michael D. Godfrey
Subject: Re: Matlab reshape behavior
Date: Mon, 11 Nov 2013 15:09:18 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 11/11/2013 01:53 PM, Rik wrote:
11/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'.

--Rik
>> x = 1:3;
>> y = reshape (x, 3)
??? Error using ==> reshape
Size vector must have at least two elements.

>> size(x)

ans =

     1     3

>> version

ans =

7.9.0.529 (R2009b)

>>



reply via email to

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