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()
-
Continuing Example 12.10, the 21 dimensional vector X has correlation matrix Rx with I,jth element We use the observation vector Y = Y (n) = [Y 1 Y n ] ' to estimate X = X 21 . Find the LMSE...
-
a. The functions f and g are defined, for x R, by Find fg(4). b. The functions h and k are defined, for x > 0, by Express each of the following in terms of h and k. i. ii. x x + 8 iii. x x 2 - 4...
-
Pick an industry and a product or service. Engage in a creative-thinking process, as outlined in Chapter 11, to generate an improved offering. Do the same to create an entirely new offering that uses...
-
The United Mutual and Accident Insurance Company has a large pool of clerical employees who process insurance application forms on networked computers. When the company hires a new clerical employee,...
-
Suppose the consumer has a wage of $52.00 per week to spend on Goods A, B & C. The cost per unit of each of these goods is Good A: $1.00 per unit, Good B: $2.00 per unit, Good C: $4.00 per unit. Use...
-
Brian and Corrine Lee are married taxpayers filing jointly. They live in the home they own, located at 3301 Pacific Coast Hwy., Laguna Beach, CA 92651. Brian is an optometrist who owns his business;...
-
using 32-bit I-EEE-756 Format 1. find the smallest floating point number bigger than 2 30 2. how many floating point numbers are there between 2 and 8?
-
Answer the following descriptive questions. a. In the interpolation of displacement of a finite element, \(u(x)=\sum N_{I}(x) u_{I}\), which one depends on time and which one depends on domain? b....
-
Calculate the natural frequencies of a uniaxial bar clamped at both ends. Use: (a) two, (b) three, and (c) four elements of equal length. Perform the analysis using both consistent mass matrix and...
-
Turner, Inc. began work on a 7,000,000 contract in 2015 to construct an office building. During 2015, Turner, Inc. incurred costs of 1,700,000, billed its customers for 1,200,000, and collected...
-
Nate Beggs signs a 1-year contract with BlueBox Video. The terms of the contract are that Nate is required to pay a non-refundable initiation fee of $100 and an annual membership fee of $5 per month....
-
Pacific Crossburgers Inc. charges an initial franchise fee of $70,000. Upon the signing of the agreement (which covers 3 years), a payment of $28,000 is due. Thereafter, three annual payments of...
-
When you draw a demand curve which factors held constant which factor not held constant?
-
Describe a group you belong or have belonged discuss the stages of group development and suggest how to improve the group effectiveness by using the group development model.
-
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...
-
If 25 women are randomly selected, find the probability that the mean of their red blood cell counts is less than 4.444. Assume that red blood cell counts of women are normally distributed with a...
-
Find the probability of an IQ less than 85.
-
What percentage of women have red blood cell counts in the normal range from 4.2 to 5.4? Assume that red blood cell counts of women are normally distributed with a mean of 4.577 and a standard...
Study smarter with the SolutionInn App