please paste code
my code wont work please help
1 clear clc N 1. Solving system of non-linear equations 1. Consider the following 4-by-4 matrix 3x + 4 + 10x3 2x1 = 34 X2 2x1 - 3x*, + 2xy + 12x = 47 xy + 2x; 2x2x, + x = 57 9x + 1+ 2x) + 3x - 54 a. (1.0 points) Write a matlab code to solve the system of equations using modified Secant method 4 5 6 7 8 PsAnswer % initial conditions clear all tic n=100; tol=10^-6; count=0; syms xlvar x2var %function war - 7: f2 = 3x2uartz - xlvar lu 9: X2(end) count b. (1.0 points) Write a matlab code to solve the non-linear equations using the tearing method. 2. 4 5 -6 57 58 59 60 61 62 63 64 65 %Answer clear; clc; tic % initial conditions x1(1) = 1; X2(1)=1; I X3(1)=1; err = 2; n=100; tol=10^-8; count_while_out=0; count_newton=0; %newton count_while_in=0; %ilinois syms x2var x3var j=1; while err > tol function %note tha x1 is not symbolic so it is automatically enumerated with f1 = x1() + 3*x2var + 5*x3var f2 2*x1(j) + 5*x2var + 3*x3var - 8; xlold = x1(j); f=[f1; f2]; 10; 1 clear clc N 1. Solving system of non-linear equations 1. Consider the following 4-by-4 matrix 3x + 4 + 10x3 2x1 = 34 X2 2x1 - 3x*, + 2xy + 12x = 47 xy + 2x; 2x2x, + x = 57 9x + 1+ 2x) + 3x - 54 a. (1.0 points) Write a matlab code to solve the system of equations using modified Secant method 4 5 6 7 8 PsAnswer % initial conditions clear all tic n=100; tol=10^-6; count=0; syms xlvar x2var %function war - 7: f2 = 3x2uartz - xlvar lu 9: X2(end) count b. (1.0 points) Write a matlab code to solve the non-linear equations using the tearing method. 2. 4 5 -6 57 58 59 60 61 62 63 64 65 %Answer clear; clc; tic % initial conditions x1(1) = 1; X2(1)=1; I X3(1)=1; err = 2; n=100; tol=10^-8; count_while_out=0; count_newton=0; %newton count_while_in=0; %ilinois syms x2var x3var j=1; while err > tol function %note tha x1 is not symbolic so it is automatically enumerated with f1 = x1() + 3*x2var + 5*x3var f2 2*x1(j) + 5*x2var + 3*x3var - 8; xlold = x1(j); f=[f1; f2]; 10