`clear variable` does not work ?

Maynard Wright m-wright at eskimo.com
Wed Jan 30 14:10:46 CST 2008


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 >


More information about the Help-octave mailing list