[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35841] error assigning value to multi-dim str
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #35841] error assigning value to multi-dim struct |
Date: |
Wed, 14 Mar 2012 17:35:12 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.54.16 (KHTML, like Gecko) Version/5.1.4 Safari/534.54.16 |
URL:
<http://savannah.gnu.org/bugs/?35841>
Summary: error assigning value to multi-dim struct
Project: GNU Octave
Submitted by: None
Submitted on: Wed 14 Mar 2012 05:35:11 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Ray Zimmerman
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.0
Operating System: Mac OS
_______________________________________________________
Details:
I'm guessing this is a bug. The latest version I have to test this on is
3.4.0, so I'm not sure if it's still an issue in the current release. Starting
with a and b undefined ...
octave-3.4.0:3> a(1,1,1).b(1) = 2;
octave-3.4.0:4> a(1,1,1).b(1) = 3;
error: a cs-list cannot be further indexed
error: assignment to structure element failed
error: assignment failed, or no method for `scalar struct = scalar'
The above produces no error in Matlab.
I think it's related to the singleton dimensions ...
octave-3.4.0:4> a(1,1,2).b(1) = 2;
octave-3.4.0:5> a(1,1,1).b(1) = 2;
... works just fine.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35841>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35841] error assigning value to multi-dim struct,
anonymous <=