Question: function B = myPivot ( A , i , j ) % myPivot - Pivots a matrix A at entry ( i , j )
function B myPivotAij
myPivot Pivots a matrix A at entry ij
B myPivotAij produces a matrix B that is row equivalent to A
where B:j except for Bij
Inputs:
A a matrix
i row index to pivot
j column index to pivot
Outputs:
B a matrix that is row equivalent to A and has been pivotted about
entry ij
mn sizeA;
B A;
Bi: Bi:Bij;
for row :m
if row i
continue
end
Brow: Brow: BrowjBi:;
end
end
Whta are the missing lines to get the correct code to answer the following
close all;
clear all;
Welcome to LAB
In lab we will write code to reduce a matrix to row echelon form. In
particular, we will make functions that pivot an entry of a matrix and
reduce matrices to reduced row echelon form.
In class we saw how to use:
boolean operations True False
use ifthen logic
write custom functions
access custom functions
Pivoting
Please finish your myPivot code and ensure that it works properly
A ;;;
myPivotA
myPivotA
Questions
#: Please manually pivot A around A and A What answer do you
expect?
Answer:
#: Does your function myPivot return the correct answer?
Answer: Please make sure not long just simple and accurate
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
