Modify proj_linfl2 to be octave-compatible