Am 02.02.2013 13:01, schrieb marco atzeri:
Taban,
try this way:
function y = f (x,t)
y = 5-2*x;
endfunction
first = 2;
...
Hi Marco, see my post.
I think his big problem was, that he made a script called dif.m and the
first line was "function y = f (x,t). He then gets a message:
warning: function name 'f' does not agree with function file name
'..../dif.m'
parse error near line 5 of file /home/andy/temp/Taban.m
syntax error
first = 2;
But he only posted the last 2 lines here. As you know you can add a 1;
as first line to overcome this.
Regards, Andy