Create write_func_Jconstraints.m