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
-
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()
-
In the CDMA multiuser communications system introduced in Problem 11.3.8, each user I transmits an independent data bit Xi such that the vector X = [X1 Xn] has iid components with PXi(1) = PXi...
-
Try as best you can to apply the Kluckhohn-Strodtbeck cross-cultural framework to the four countries discussed in this chapter: Mexico, France, Saudi Arabia, and China. Where do you think these...
-
Superhero Industries reported the following at September 30: Requirements 1. Record retirement of half of the bonds on October 1 at the call price of 101. 2. Record conversion of the remainder of the...
-
Portfolio Returns and Deviations consider the following information about three stocks: a. If your portfolio is invested 40 percent each in A and B and 20 percent in C, what is the portfolio expected...
-
Microhard produces tablets, laptops and televisions. Microhard typically sells 1,000 tablets a year. The tablet information is as follows: Selling price per unit Direct material cost per unit Direct...
-
Brewsters Used Cars, Inc. employs several salespeople. Brewster, the owner of the company, has provided a file that contains sales records for each salesperson for the past month. Each record in the...
-
The market for MacBooks is in equilibrium, until Microsoft introduced its newest laptop. Microsoft's laptop is less expensive than the existing MacBook. Assume the two goods are substitutes. A. (2...
-
A(n) _____________ is a hostile electronic message that is blunt, rude, insensitive, or obscene.
-
Discuss the attitude or mindset you have about work and finding a job. What are the primary factors (e.g., family, prior work history) that have influenced your attitude? Do you think these factors...
-
Visit the Dicks Sporting Goods website and look at the companys customer reviews and feedback. Do you believe Dicks does an effective job of listening to its customer base? Are there any improvements...
-
____________ describes how employees and supervisors do not share the same view of some fundamental areas such as organizational issues or basic job duties.
-
_____________ refers to sending authentic-looking but fraudulent emails designed to steal sensitive personal information.
-
Now consider another language L, of strings having exactly double a and having one number of bs defined over = {a, b}, then its regular expression maybe?
-
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...
-
How would you improve the social media influencer questionnaire?
-
In your opinion, why is more than 60% of todays primary research data being generated by online self-reporting survey methods?
-
Use your statistical software package to obtain descriptive statistics for variables X1 to X8. Are the results similar or different from what your answers would be regarding an effective influencer?
Study smarter with the SolutionInn App