Date: Oct 18, 2013 12:39 PM
Author: Fang
Subject: How to use lsqnonlin with the option "JacobPattern"

I have a large-size problem, and the Jacobian matrix is sparse. In the document, there is a "JacobPattern" option, but I cannot find any example about how to use it. Anyone can help?

I tried to create a Jacobian matrix using sparse() function, but the problem is sparse() can not be used by "function_handle". I guess "JacobPattern" can solve this problem, but how?

Thank you in advance.