Changed the problem from using octave to matlab.