MATLAB: How to pass a parameter to nonlcon used with fmincon

fminconnonlinear constraintsparameter

If nonlincon = @myConstrainedQuantity, how can I pass a parameter to myConstrainedQuantity?
The documentation shows only the x variable going in to that function.
Thanks