help-octave
[Top][All Lists]
Advanced

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

Re: Numerical Differentiation and Integration of Array Data


From: syberraith
Subject: Re: Numerical Differentiation and Integration of Array Data
Date: Tue, 6 Dec 2011 19:38:28 -0800 (PST)

Even this fails to work:

a = 2;
b = 3;
one = @(x) a.*x + b;
two = @(x) a.^2.*x + b;
one(4)
two(5)

error: `a' undefined near line 3 column 12
error: evaluating binary operator `.*' near line 3, column 13
error: evaluating binary operator `+' near line 3, column 17
error: called from `?unknown?'
error: near line 5 of file `/home/fred/octave/test4.m'


--
View this message in context: 
http://octave.1599824.n4.nabble.com/Numerical-Differentiation-and-Integration-of-Array-Data-tp4145498p4167564.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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