Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Goal Please help me to build an original program in MATLAB with a clear code that solves the equation AX= B using Gaussian elimination with

image text in transcribed

Goal Please help me to build an original program in MATLAB with a clear code that solves the equation AX= B using Gaussian elimination with partial pivoting. (Fast algorithms preferred) Thanks so much! Details Your task is to create an M-file named GaussElim.m that contains a function named GaussE1im. This function calculates the unknown X array using Gaussian elimination with partial pivoting. Your M-file will begin with the following line of code: function [x] - GaussElim (A, B) The input arguments are arrays A and B. The output argument is the array X that contains the solutions to the set of linear algebraic equations as determined by your Gaussian elimination algorithm. You can test your function by using values from an example discussed in class. Important details: You will not know ahead of time the size of the A and B arrays (i.e., A will be n x n and B will be n x 1, but you will not know the value of n ahead of time). n may be 8, 9, 13, 270, etc. Your function should work for any value of n. You must write your own code that completes the forward elimination (with partial pivoting) step and backward substitution step The only built-in functions that you may use are size, numel, zeros, and abs. Do not use the backslash operator and other built-in functions such as max, lu, etc. Ask me if you have any questions about whether a function is allowed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions