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: Maynard Wright
Subject: Re: `clear variable` does not work ?
Date: Wed, 30 Jan 2008 12:10:46 -0800
User-agent: KMail/1.9.1

I executed the following script using Octave 2.1.72:

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.

Maynard

On Wednesday 30 January 2008 04:44, oxy wrote:
> Hi friends,
> i cannot clear a global variable with `clear` as in the example bellow:
>
< remainder clipped >


reply via email to

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