octave doesn't understand the ~ so we drop it
matlab doesn't like my saveas command