[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: @(x) plus(x,++j)
From: |
Andreas Weber |
Subject: |
Re: @(x) plus(x,++j) |
Date: |
Fri, 23 May 2014 12:56:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
Am 23.05.2014 11:37, schrieb Muhali:
> j = 0 ;
> f = @(x) plus(x,++j) ;
>
> one gets the (expected?) results
>
> octave> feval(f)
> ans = 1
I think feval(f) should give you something like
error: 'x' undefined near line .....
error: evaluating argument list element number 1
--Andy