Dear Sir, I am trying to run the following script in octave: # Integrate t^2 from t=1 to t=3 function xdot = f (x, t) xdot(1) = t ^ 2; endfunction x0=1; t = linspace (0, 3, 10)'; x = lsode ("f", x0, t) plot(x,t) I saved it as testing.m. When I type the name of the file in the octave command line, it tells me there is and undefined statement. This is the error that Octave is showing me in the command line: >>testing error: `t' undefined near line 3 column 14 error: evaluating binary operator `^' near line 3, column 16 error: evaluating assignment expression near line 3, column 12 error: called from `testing' in file `/octave_files/testing.m' >> Can you please tell me what I am doing wrong? The programme does not seem to have any error at all. I have run every single line of the programme (one by one) on the octave command line and there is no problem. Please let me know what is the problem, Thanks, Fernando