What does not work? This is just a basic Newton-Raphson method. First, what are the functions for your test problem?
x^2 + y - 2
x + y^2 - 2
Before I do ANYTHING, what is the solution? Does a solution exist? If it does, the solution will be where the red and blue lines cross in this plot.
fimplicit(x^2 + y - 2,'r')
fimplicit(x + y^2 - 2,'b')
Clearly, 4 solutions exist.
xy = solve(x^2 + y - 2 == 0,x + y^2 - 2 == 0)
xy =
x: [4x1 sym]
y: [4x1 sym]
[xy.x,xy.y]
ans =

double([xy.x,xy.y])
ans =
1.0000 1.0000
-2.0000 -2.0000
1.6180 -0.6180
-0.6180 1.6180
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
So there are 4 solutions. A newton method will find one of them, IF it converges, and IF you did not start the solver out at a location where the solver diverges or gets stuck! My guess would be, if I start a solver out at [1,0], I'll end up at the first, or the third solution listed. But I might be wrong.
So next, write a basic Newton-Raphson scheme.
J = jacobian([x^2 + y - 2,x + y^2 - 2],[x,y])
J =

Jfun = matlabFunction(J)
Jfun =
@(x,y)reshape([x.*2.0,1.0,1.0,y.*2.0],[2,2])
I've turned it into a function handle, so I can use it in a numerical method.
obj = @(x,y) [x.^2 + y - 2;x + y.^2 - 2];
Note that both of these functions are a function of x and y, but I want to work with vectors. You can see how I did it below.
while (deltaXY > tol) && (iter < itmax)
XYnew = [XY - Jfun(XY(1),XY(2))\obj(XY(1),XY(2))];
deltaXY = norm(XYnew - XY);
disp("Iteration: " + iter + ', DeltaXY: ' + deltaXY)
end
Iteration: 1, DeltaXY: 1.4142
Iteration: 2, DeltaXY: 0.4714
Iteration: 3, DeltaXY: 0.067344
Iteration: 4, DeltaXY: 0.0014328
Iteration: 5, DeltaXY: 6.4923e-07
Iteration: 6, DeltaXY: 1.3338e-13
XY
XY =
1.61803398874989
-0.618033988749895
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
It has converged quite rapidly to the third solution. Note my use of backslash on the jacobian, which implicitly does the equivalent of inv(Jfun(x,y))*obj(x,y),