I am trying to implement a casadi function with a jacobian in matlab. I am however getting the following error when I try to use the jacobian with nlpsol: Error using ...