octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

@(x) plus(x,++j)


From: Muhali
Subject: @(x) plus(x,++j)
Date: Fri, 23 May 2014 02:37:22 -0700 (PDT)

I am not sure what to do with this, and whether it is a bug or not.

Letting

j = 0 ;
f = @(x) plus(x,++j) ;

one gets the (expected?) results

octave> feval(f)
ans = 1
octave> feval(f)
ans = 2

etc. But why do I get this

octave> feval(@(x) plus(x,++j))
ans = 1
octave> feval(@(x) plus(x,++j))
ans = 1

etc. ?



--
View this message in context: 
http://octave.1599824.n4.nabble.com/x-plus-x-j-tp4664287.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]