[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to clear a command line function
From: |
Andy Buckle |
Subject: |
Re: How to clear a command line function |
Date: |
Wed, 25 Jan 2012 21:35:12 +0000 |
On 25 January 2012 21:30, Andy Buckle <address@hidden> wrote:
> On 25 January 2012 19:51, Muhali <address@hidden> wrote:
>> From my understanding of the corresponding help text, I would 'clear' a
>> command line function as follows:
>>
>> octave> function y = foo(x), y = e^x ; endfunction
>> octave> which foo
>> `foo' is a command-line function
>> octave> clear foo
>>
>> but that doesn't seem to work:
>>
>> octave> which foo
>> `foo' is a command-line function
>>
>> I know about 'clear -f', but according to the help 'clear foo' should also
>> work.
>>
>> What am I missing?
>>
>> M.
>
> clear removes it from memory. To remove it completely remove the file
> (foo.m, foo.oct, ...) from the Octave's path. eg change the path, or
> delete the file.
>
> Only time I have needed to clear a function is before recompiling an
> oct file. What are you trying to do?
oops. just read your post properly. I see your point. clear -a works,
but may also clear things you don't want. I don't have the answer.
--
/* andy buckle */