Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started