The problem may be in the following line. Make sure it is just a scalar. To give an example,
F = [2*x(4)*x(2)*x(5)*(x(3)^((x(5)-1)/x(5))) + x(1) + 0.000216678;
x(1)];
will not trigger a vertcat error, but
F = [2*x(4)*x(2)*x(5)*(x(3)^((x(5)-1)/x(5))) + x(1) + 0.000216678;
x(1:2)];
will.