[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33340] subsasgn doesn't always remove trailin
From: |
Helios De Rosario |
Subject: |
[Octave-bug-tracker] [bug #33340] subsasgn doesn't always remove trailing singleton dimensions |
Date: |
Wed, 18 May 2011 15:34:39 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12 (.NET CLR 3.5.30729) |
URL:
<http://savannah.gnu.org/bugs/?33340>
Summary: subsasgn doesn't always remove trailing singleton
dimensions
Project: GNU Octave
Submitted by: heliosdr
Submitted on: Wed May 18 15:34:38 2011
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Helios De Rosario
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: Microsoft Windows
_______________________________________________________
Details:
Yet another quirk related to traling singleton dimensions. The subsasgn method
does not handle them consistently:
octave-3.2.4:1> x=ones(2)
x =
1 1
1 1
octave-3.2.4:2> size(x)
ans =
2 2
octave-3.2.4:3> y=x(:,:,1)
y =
1 1
1 1
octave-3.2.4:4> size(z)
ans =
2 2
That's ok. But then:
octave-3.2.4:5> z=x(:,:,:)
z =
1 1
1 1
octave-3.2.4:6> size(z)
ans =
2 2 1
This last operation should return the same as the previous one, I think.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33340>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33340] subsasgn doesn't always remove trailing singleton dimensions,
Helios De Rosario <=