[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40576] Assignment to Cell Array of Structure
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #40576] Assignment to Cell Array of Structure Fields Gives invalid assignment Error |
Date: |
Thu, 14 Nov 2013 06:29:54 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 |
Follow-up Comment #1, bug #40576 (project octave):
I'm not sure the problem is quite so terrible. The sample code is indexing
outside the cell array. Perhaps for compatibility Octave should be squeezing
out the final singleton dimension, but in the mean time you can get the code
to work by staying within your array.
load cellasbug
whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
pcUlBuf 3x2 101184 cell
Total is 6 elements using 101184 bytes
pcUlBuf{1,1}.bins = 2 * pcUlBuf{1,1}.bins; # succeeds
pcUlBuf{1,1}.bins = 2
pcUlBuf =
{
[1,1] =
scalar structure containing the fields:
bins = 2
subbBanks =
0.020469 0.020469
0.020469 0.020469
...
...
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40576>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/