Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Matlab please Problem 1 Solve, using a MATLAB code, the following system: 5x y +z + w = 9 2 + 7y + 2x

using Matlab please image text in transcribed
Problem 1 Solve, using a MATLAB code, the following system: 5x y +z + w = 9 2 + 7y + 2x + 2w = 3 2x + y + 5z + w = 7 -y +z + 4w = 6 Use the Jacobi method with a tolerance of 10-5 for the norm of the residual. Arrange your results in a table of the form X y z w iteration 0 0 0 0 0 1 .. so that you can see how x, y, z and w change with each iteration. You can create such a table using disp() in a loop; you may also use variants of printf, i.e. fprintf or sprintf if you are familiar with these functions, but do not use the Matlab table command as it does not do quite what is expected here. Also, as obvious from the table above, start with the zero guess. Moreover, plot the norm of the residual versus the iteration number; use a logarithmic scale on the vertical axis (the residual axis). Turn in your code and the output as described. The code can be organized as: (a) a function file that implements Jacobi's method; and (b) a script that calls the function with the appropriate inputs and processes the results. Your plot should have a plot title, axes labels and a legend. Use the help plot command and the class notes to investigate the various options available when plotting

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago