[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: f(end) feature?
From: |
Paul Kienzle |
Subject: |
Re: f(end) feature? |
Date: |
Tue, 31 Dec 2002 16:25:30 -0500 |
User-agent: |
Mutt/1.2.5.1i |
So I guess the following is out of the question:
function y = head(x)
y = x(1:min(3,end));
end
- Paul
On Tue, Dec 31, 2002 at 02:16:14PM -0600, John W. Eaton wrote:
> On 31-Dec-2002, Paul Kienzle <address@hidden> wrote:
>
> | octave:1> function y=f(x), y=x; end
> | octave:2> f(end)
> | ans = 1
>
> Try the following patch. With it, you should see
>
> octave:1> function y = f (x) y = x; end
> octave:2> f (end)
> error: invalid use of end
> error: evaluating argument list element number 1
>
> jwe
- f(end) feature?, Paul Kienzle, 2002/12/31
- f(end) feature?, John W. Eaton, 2002/12/31
- Re: f(end) feature?,
Paul Kienzle <=
- Re: f(end) feature?, John W. Eaton, 2002/12/31
- Re: f(end) feature?, Paul Kienzle, 2002/12/31
- Re: f(end) feature?, John W. Eaton, 2002/12/31
- Re: f(end) feature?, Paul Kienzle, 2002/12/31
- Re: f(end) feature?, John W. Eaton, 2002/12/31