Code works just fine for MATLAB & Octave -> resolves #4