Complete the code to solve the system Ax = b.
x = A [1] b;In MATLAB, the backslash operator \ solves the system Ax = b efficiently.
Complete the code to solve the system and store the result in variable x.
x = [1] \ b;The matrix A is on the left side of the backslash operator to solve Ax = b.
Fix the error in the code to correctly solve the system Ax = b.
x = A [1] b;The correct operator to solve Ax = b is the backslash \, not division or multiplication.
Complete the code to create a matrix of solutions for multiple right-hand sides.
solutions = A [1] b(:, :);Use \ to solve the systems for all columns of b and : to select all rows and columns of b.
Fill all three blanks to solve and store solutions for each column of b in an array.
for [1] = 1:size(b, 2) solutions([2]) = A [3] b(:, i); end
Use i as the loop variable and index, and \ to solve the system.
