clearing a structure member;
Ben Abbott
bpabbott at mac.com
Thu Sep 25 17:22:20 CDT 2008
On Sep 25, 2008, at 4:19 PM, Levente Torok wrote:
> On Thursday 25 September 2008, Levente Torok wrote:
> Hi all,
>
> Is there any way of removing a member from a structure?
>
> Eg.:
>
> a=1
> "clear a"
> clears a completely from the envirornment, however,
>
> a.a = 1;
> neither
> a.a = [];
> nor
> clear a.a
> deletes it.
>
> Does anybody know the right answer?
>
> Lev
a = rmfield (a, 'a');
Ben
More information about the Help-octave
mailing list