1. Engineering
  2. Computer Science
  3. problem 3 20 points using the algorithm for gaussjordan without...

Question: problem 3 20 points using the algorithm for gaussjordan without...

Question details

Problem 3 (20 points) Using the algorithm for Gauss-Jordan without pivoting developed in class, code a function myGaussJordan that takes as input a matrix A and collection of q right-hand sides b forming the columns of of a matrix B. Your function shall return the q solution vectors as columns of a matrix X. Do not use any Matlab functions for solving matrices, the only functions/structures you may use are the ones covered in the class slides. If you struggle with this problem, or you just want to verify your code, debug your code by letting your function solve Problem 1a) and 1b) and use the debugger to compare the solution steps you took in Problem 1 to the results Matlab produces for each line of code. For 1a) B is simply a 3 by 1 matrix, as is X. For 1b) set up B as the 3x3 identify matrix using Beye (3,3);. Upon return, X should be the inverse of A Problem 3 required submission: Softcopy printout of well commented function you coded included in your Gradescope submission . Upload of your Matlab function to the Homework 2 link on Canvas

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution