Octave functions to read and generate data.