Update example2.m

Rudimentary Octave compatibility