octave-maintainers
[Top][All Lists]
Advanced

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

Re: Matlab reshape behavior


From: PhilipNienhuis
Subject: Re: Matlab reshape behavior
Date: Mon, 11 Nov 2013 13:31:10 -0800 (PST)

Rik-4 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'.

3 x 0?  Not here:

>> x = 1:3
x =

   1   2   3

>> y = reshape (x, 3)
y =

   1
   2
   3

>>

(I think an MXE build based on changeset 17894:62b76b377749 (or around that
time, anyway from Sunday), on WinXP)

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Matlab-reshape-behavior-tp4659053p4659062.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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