I slightly changed your code to make it a bit less confusing (creating ‘x’ and ‘y’ and ‘X’ and ‘Y’):
x = -10:0.1:10;
y = -10:0.1:10;
[X,Y] = meshgrid(x,y);
There is one error. You need to do element-wise multiplication:
F2 = ((5*X.^2) + (X.^4) - (9*(X.^2).*Y) + 3*(Y.^2) + (2*Y.^4) + (0.25*X));
↑ ← HERE
They now appear to be the same.


