Dear Jaroslav, it it possible to apply the patch to polyfit described here: http://www.nabble.com/polyfit%3A-add-a-third-output-argument%2C-mu--PATCH--td18207873.html#a18207873 ? Best regards, Marco