Question: Matlab assignment Input and output format of each function + The filename must exactly match with the function name + The zip file must include:
Matlab assignment
Input and output format of each function
+ The filename must exactly match with the function name
+ The zip file must include:
- interchange.m
- scaling.m
- replacement.m
- my_rref.m
+ No matlab build-in function such as rref or A\b exists in your code

As this may be your first experience with serious programming in MaTLAB, we will ease into it by first writing some simple functions that perform the elementary row operations on a matrix: interchange, scaling, and replacement Specification: function B = interchange (A, 1, j) Input: a rectangular matrix A and two integers i and j. Output: the matrix resulting from swapping rows i and j, i.e. performing the row operation Ri R function B= scaling(A, i, s) Input: a rectangular matrix A, an integer i, and a scalar s. Output: the matrix resulting from multiplying all entries in row i by s, i.e. per- forming the row operation Ri sRi. function B = replacement (A, 1, j, s) Input: a rectangular matrix A, two integers i and j, and a scalar s. Output: the matrix resulting from adding s times row j to row i, i.e. performing the row operation Ri Rit sA. As this may be your first experience with serious programming in MaTLAB, we will ease into it by first writing some simple functions that perform the elementary row operations on a matrix: interchange, scaling, and replacement Specification: function B = interchange (A, 1, j) Input: a rectangular matrix A and two integers i and j. Output: the matrix resulting from swapping rows i and j, i.e. performing the row operation Ri R function B= scaling(A, i, s) Input: a rectangular matrix A, an integer i, and a scalar s. Output: the matrix resulting from multiplying all entries in row i by s, i.e. per- forming the row operation Ri sRi. function B = replacement (A, 1, j, s) Input: a rectangular matrix A, two integers i and j, and a scalar s. Output: the matrix resulting from adding s times row j to row i, i.e. performing the row operation Ri Rit sA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
