help-octave
[Top][All Lists]
Advanced

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

Re: The parse error on the "x"


From: Andreas Weber
Subject: Re: The parse error on the "x"
Date: Sat, 02 Feb 2013 12:43:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11

Am 02.02.2013 12:27, schrieb Taban:
> Thanks,
> 
> All code is that in my script. if "first" works for you. Can you write here
> code which executed successfully. 

cat Taban.m
1;   #because is not you will get a warning:
     #function name 'f' does not agree with function file name
'/home/andy/temp/Taban.m'
function y = f (x,t)
y = 5-2*x;  #Ben told you already this error
endfunction
first = 2;
t = linspace(0,20,100);   #=, not - and add a ;
s = lsode("f",first,t);   #not "" because initial state is not a string
plot(t,s,"r-")


reply via email to

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