Thanks for help, now it looks fine Ćukasz -- View this message in context: http://mailinglists.scilab.org/Problem-with-function-fitting-tp4031546p4031551.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.