1-D Finite Element Method in octave/Matlab