[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cell2struct error
From: |
Michael Grossbach |
Subject: |
cell2struct error |
Date: |
Tue, 18 Aug 2009 10:30:17 +0200 |
User-agent: |
Mozilla-Thunderbird 2.0.0.22 (X11/20090707) |
Adding fields to a struct fails when the struct has been assigned before
using cell2struct:
keys = {"one"; "two"};
values = {1, 3; 2, 4};
s = cell2struct(values, keys, 2);
s.three = [5;6]
error: invalid structure assignment
error: assignment to structure element failed
error: assignment failed, or no method for `struct = matrix'
error: evaluating assignment expression near line 23, column 9
This is Octave 3.0.1 on Debian Lenny. Has this been fixed in more recent
versions? Or am I doing something wrong?
Thanks, Michael
- cell2struct error,
Michael Grossbach <=