Create a MATLAB function called 'LU_hw3.m' that takes the following input: a nxn regular matrix A...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a MATLAB function called 'LU_hw3.m' that takes the following input: a nxn regular matrix A and returns the following outputs: the nxn lower-triangular matrix L of the LU decomposition of A the nxn upper-triangular matrix U of the LU decomposition of A. You may want to build into your function an error message if the matrix A is not regular, although this is not required for this exercise. Hint: Modify the regular Gaussian elimination code presented in Component Skill 3.3. Test your function on some easy regular matrices of your choice. Once you're confident your code is correct, copy the contents of your function file and paste them to the very bottom of your hw3.m script file. In the Exercise 1 section of your script file, evaluate your LU_hw3 function for the following matrix: 1 1 3 -1 A = 4 3 5 3 Assign the resulting L matrix to the variable A1 and the resulting U matrix to the variable A2. Create a MATLAB function called 'LU_hw3.m' that takes the following input: a nxn regular matrix A and returns the following outputs: the nxn lower-triangular matrix L of the LU decomposition of A the nxn upper-triangular matrix U of the LU decomposition of A. You may want to build into your function an error message if the matrix A is not regular, although this is not required for this exercise. Hint: Modify the regular Gaussian elimination code presented in Component Skill 3.3. Test your function on some easy regular matrices of your choice. Once you're confident your code is correct, copy the contents of your function file and paste them to the very bottom of your hw3.m script file. In the Exercise 1 section of your script file, evaluate your LU_hw3 function for the following matrix: 1 1 3 -1 A = 4 3 5 3 Assign the resulting L matrix to the variable A1 and the resulting U matrix to the variable A2.
Expert Answer:
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these mathematics questions
-
Cholesterol levels are normally distributed. For people between the ages of 18 and 24 the mean is 178.1. Convert the given score to a z-score, using the standard deviation of 40.7.What percentage of...
-
PLEASE GIVE CORRECT ANSWERS Prove that the number of comparators in any sorting network is (n log n). [4 marks] (ii) What does Part (d)(i) imply in terms of the depth of any sorting network? [1 mark]...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Suppose 2 x - T f(x) -1-cos z for all real numbers z. Find lim f(x) PIK 2) Use the Squeeze Theorem to evaluate the limit lim 2 sin()
-
Yk = q0 + q1k + q2k2 + Zk, Where q 0 + q 1 k + q 2 k 2 is an unknown quadratic function of k and Z k is a sequence of iid Gaussian (0,1) noise random variables. We wish to estimate the unknown...
-
Find the average value of the function on the given interval. g(x) = 3 x. [1,8]
-
What are some of the requirements for audit committees under the Sarbanes-Oxley Act?
-
The Raab Company is expanding its production facilities to include a new product line, a sporty automotive tire rim. Tire rims can now be produced with little labor cost using new computerized...
-
54. From the following list of costs, determine the amount of non-value-added cost. Moving component parts from warehouse to assembly line Assembling the kitchen cabinets Moving materials to the...
-
Chase Manhattan Bank The workload in many areas of bank operations has the characteristics of a nonuniform distribution with respect to time of day. For example, at Chase Manhattan Bank, the number...
-
For problems 1 & 2 list the first 4 terms of the sequence. An 1. 2. (-1)+1 00 For problems 3 & 4 determine if the given sequence converges or diverges. If it converges what is its limit? 3. n-7n+3...
-
Suppose the premium on a 6 - month 9 5 0 - strike S&R call is $ 1 2 0 . 4 1 and the premium on a put with the same strike price is $ 5 1 . 7 8 , while the premium on a 6 - month 1 0 0 0 - strike S&R...
-
What are the implications of the marketing and manufacturing initiatives for future costs and profits of HPI?
-
Tron Industries produces electronic equipment and uses backflush costing. There are no beginning inventories of raw materials or finished goods. See below for the following data related to the month:...
-
QUESTION 5 Hamimah Company produces and sells 'London Almond cookies' that are packed in a jar. Each jar comprises of 100 pieces of cookies. The following data is available for the month of October...
-
A project has an initial cost of $ 5 2 , 7 0 0 and a market value of $ 6 1 , 8 0 0 . What is the difference between these two values called?
-
Differential Analysis for Machine Replacement Kim Kwon Digital Components Company assembles circuit boards by using a manually operated machine to insert electronic components. The original cost of...
-
7. Baladna wants to analyze process that includes delivery by suppliers, production inside the company, transportation to to its customers and information systems. Then it also wants to find out...
-
Solve the unsteady diffusion equation subject to boundary conditions c(0, t) = 1 and c/x = 0 at x = 1. The initial condition is given by the piecewise function You should also provide the physical...
-
Use simultaneous Gauss elimination to solve the system of equations Ax = c with for c 1 = [1 0 0] T , c 2 = [0 1 0] T , and c 3 = [0 0 1] T . Based on your results, what is A 1 ? A = 5 6 13 42 -3 1 -6
-
Write a program that uses multiple trapezoidal rule to compute the integral Your program should automatically generate a plot of I versus the number n of trapezoids used to compute the answer up to a...
-
You are offered the opportunity to buy a note for \($12,800.\) The note is certain to pay \($2,000\) at the end of each of the next 10 years. If you buy the note, what rate of interest will you...
-
What is the value of a 15-year annuity that pays \($500\) a year? The annuitys first payment is at the end of year 6 and the annual interest rate is 12 percent for years 1 through 5 and 15 percent...
-
Mark Weinstein has been working on an advanced technology in laser eye surgery. The technology is expected to be available to the medical industry two years from today and will generate annual income...
Study smarter with the SolutionInn App