[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can I protect specified variables from "clear all"
From: |
Ben Abbott |
Subject: |
Re: Can I protect specified variables from "clear all" |
Date: |
Sun, 17 Jul 2016 07:35:35 -0400 |
> On Jul 16, 2016, at 9:16 PM, Tatsuro MATSUOKA <address@hidden> wrote:
>
> Hello
>
> Some scripts given from other people includes
>
> clear all;
>
> at the top.
>
> However this clear unwanted variables e.g. gnuplot_binary.
>
> Can I do this?
>
> I have consulted "help clear" and I cannot get useful information.
>
> Thanks in advance.
>
> Tatsuro
If you are building octave and would like to permanently change the default
name for gnuplot, you can set the name during configure.
Otherwise, “mlock ()” can be added to gnuplot_binary.m. This will prevent
gnuplot_binary from being cleared and should also preserve the persistent
variables “gp_binary” and “gp_args”. imo, “mlock ()” should be present. Perhaps
this is a bug?
Ben