I have very little experience with Octave, I made a code to plot 4 lines on a graph, it worked, but when I changed the name of the file and tried to run it I got "error: 'filename' undefined near line 1 column 1"
any of you guys know how to fix this?
sorry, completly forgot:
x = -3.1415:0.1:3.1415; %limits for x coordinates
a = sin(x) %defining a
b = x %defining b
c = x - ((x.^2)/2) %defining c
d = x - ((x.^2)/2) + ((x.^4)/24) %defining d
plot (x,a, 'r')
plot (x,b, 'b')
plot (x,c, 'g')
plot (x,d, 'y')
legend ('y=sin(x)', 'y=x', 'x-x^2/2', 'x-x^2/2 + x^4/24')
so are you typing the new filename at the command prompt and it doesn't run? or calling it within the Octave interpreter?
or are you running a script in Octave, and inside that script there's a call to run the script file containing the code given in this thread?