help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clearing a structure member;


From: Ben Abbott
Subject: Re: clearing a structure member;
Date: Thu, 25 Sep 2008 18:22:20 -0400


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]