help-octave
[Top][All Lists]
Advanced

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

size of 3d array


From: Norbert Hauser
Subject: size of 3d array
Date: Mon, 04 Dec 2006 10:41:57 +0100

I haven't found the following difference between octave and matlab in the 
compatibility list.

The output of

a=zeros(2,2,2);
[s1,s2]=size(a)

in octave is:
s1 = 2
s2 = 2

and in matlab is:
s1 =
     2
s2 =
     4

Is there an explanation, why matlab combines the dimensions 2+3 in s2, but 
octave doesn't? Has this been implemented intentionally, and can I make octave 
behave like matlab in this case without changing existing code?

Despite of such small problems I am more and more impressed by octave's 
capabilities Thanks to all who have contributed!

Norbert
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail k├Ânnen Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179






reply via email to

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