octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #32683] icompatible behaviour of ndarray conca


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #32683] icompatible behaviour of ndarray concatenation
Date: Sat, 05 Mar 2011 00:07:00 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

URL:
  <http://savannah.gnu.org/bugs/?32683>

                 Summary: icompatible behaviour of ndarray concatenation
                 Project: GNU Octave
            Submitted by: cdf
            Submitted on: Sat 05 Mar 2011 01:06:59 AM CET
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Mac OS

    _______________________________________________________

Details:

in matlab I get:


>> version

ans =

7.5.0.338 (R2007b)

>> coefs = [zeros(3,2,2); ones(1,2,2)]

coefs(:,:,1) =

     0     0
     0     0
     0     0
     1     1


coefs(:,:,2) =

     0     0
     0     0
     0     0
     1     1

>> 



Octave used to be the same:


>> version
ans = 3.2.3
>> coefs = [zeros(3,2,2); ones(1,2,2)]
coefs =

ans(:,:,1) =

   0   0
   0   0
   0   0
   1   1

ans(:,:,2) =

   0   0
   0   0
   0   0
   1   1



with the development version though:


>> version
ans = 3.5.0+
>> coefs = [zeros(3,2,2); ones(1,2,2)]
coefs =

ans(:,:,1) =

   1.00000   1.00000
   0.00000   0.00000
   0.00000   0.00000
   0.00000   0.00000

ans(:,:,2) =

   1.00000   1.00000
   0.00000   0.00000
   0.00000   0.00000
   0.00000   0.00000

>> 





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32683>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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