[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rmfield does not seem to work
From: |
grg |
Subject: |
rmfield does not seem to work |
Date: |
Thu, 24 Nov 2011 08:24:05 -0800 (PST) |
Hi there,
I am runnig octave-3.2.4 on fedora 14 and rmfield does not seem to be
working (see example below).
Am I doing something wrong?
Thanks a lot for octave and for any help you may provide.
grg
octave:1> s.f1 = rand(10);
octave:2> s.f2 = rand(20);
octave:3> s.f3 = rand(4);
octave:4> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
ans 1x33 302 cell
s 1x1 4128 struct
Total is 34 elements using 4430 bytes
octave:5> isfield(s, "f1")
ans = 1
octave:6> rmfield(s, "f1");
octave:7> isfield(s, "f1")
ans = 1
octave:8> fieldnames (s)
ans =
{
[1,1] = f1
[2,1] = f2
[3,1] = f3
}
--
View this message in context:
http://octave.1599824.n4.nabble.com/rmfield-does-not-seem-to-work-tp4104492p4104492.html
Sent from the Octave - General mailing list archive at Nabble.com.