Question: Task 2: Create a Function for Backward Elimination (5 pts) Do not use any of MATLAB's built in functions or commands. This MUSTbe implemented using

 Task 2: Create a Function for Backward Elimination (5 pts) Do

Task 2: Create a Function for Backward Elimination (5 pts) Do not use any of MATLAB's built in functions or commands. This MUSTbe implemented using matrix and vector components via FOR loops in your construction Use backward elimination to solve Ux -y for x via the algorithm MEEN 357 Engineering Analysis for Mechanical Engineers Spring 2017 for i 1:1 where U is an upper-triangular matrix of dimension ngn, while x and y are column vectors of dimension n. Use the MATLAB command x zeros(n.1) to initialize vector x This function must have the interface x backward elim (U, and it needs to verify that Uis a square n n matrix with numeric values, while yis a column vector of like dimension n containing nu values, where n is arbitrary, if not your code should terminate with an error. It should also terminate with an error if any diagonal element of matrix U is zero valued. If there are elements in the strictly lower-triangular part of matrix U, they are to be ignored

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!