You are on page 1of 2

H.

W (1)

A’laa Sami Eltayeb (162013)


Question (3):
function f = MATLAB_Broblem3(x)
%Solution of system of nonlinear algebric equations
%using fsolve function
f(1) =x(1).^3-3*x(1)*x(2).^2;
f(2) =x(1).^2-4*x(1).^2*x(2);
end
In script file
x0 = [2.0 1.0];
x = fsolve(@MATLAB_Broblem3,x0);
fprintf('The value of x = %8.2f \n',x(1))
fprintf('The value of y = %8.2f \n',x(2))

You might also like