Matlab least-squares fit interface