Make the programs work in both Mablab and Octave