% Solve the following system of linear equations for x, y, and z: 2x + y + z = 7 3x + 2y + 2z = 12 x - y + 3z = 10 % Define the coefficient matrix A and the right-hand side vector b A = [2 1 1; 3 2 2; 1 -1 3]; b = [7; 12; 10]; % Solve the system of equations using the backslash operator x = A \ b; % Display the solution fprintf('Solution:\n'); fprintf('x = %.2f\n', x(1)); fprintf('y = %.2f\n', x(2)); fprintf('z = %.2f\n', x(3));