lsqnonlin works, and is better/faster than fminsearch