Partial Jacobian matrix of wrong dimension
A MATLAB Automatic Differentiation Tool
Brought to you by:
anilvrao2,
weinstein87
User Error, it's now working just fine.