help-octave
[Top][All Lists]
Advanced

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

Re: `clear variable` does not work ?


From: Matthias Brennwald
Subject: Re: `clear variable` does not work ?
Date: Thu, 31 Jan 2008 13:35:09 +0100

On Thu, 2008-01-31 at 04:07 -0600, address@hidden wrote:
> | global x = [1 2 3];
> | clear x;
> | global x = [9 9 9];
> | x(3) = 7;
> | printf(" x = %d\n", x);
> | 
> | The result was:
> | 
> | x = 1
> | x = 2
> | x = 7
> | 
> | It seems to me that I can't delete or modify, as a whole, the global
> variable 
> | x, but I can write over individual elements.
> 
> To clear the global variable X, you have to write
> 
>   clear global x
> 
> jwe

Ok. But how does this fit in with my previous post, where I used

   clear x

which seemed to have cleared x successfully?


Matthias



reply via email to

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