help-octave
[Top][All Lists]
Advanced

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

The parse error on the "x"


From: Taban
Subject: The parse error on the "x"
Date: Fri, 1 Feb 2013 12:33:44 -0800 (PST)

Hi everybody,
I am a newby at Octave, I am trying to solve a one order differential equation. Thats my code:
function y = f (x,t)
y = 5-2x;
endfunction
first = 2;
t - linspace(0,20,100)
s = lsode("f","first",t);
plot(t,s,"r-")

And this is my error:
parse error near line 2 of file .../dif.m
syntax error
>>> y = 5-2x;
                    ^

View this message in context: The parse error on the "x"
Sent from the Octave - General mailing list archive at Nabble.com.

reply via email to

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