subject

Here you will work with LU factorization of an mn× matrix A. Theory: Any mxn matrix A can be reduced to an echelon form by using only row replacement and row interchanging operations. Row interchanging is almost always necessary for a computer realization because it reduces the round off errors in calculations - this strategy in computer calculation is called partial pivoting, which refers to selecting for a pivot the largest by absolute value entry in a column. The MATLAB command [L, U] = lu(A) returns a permuted lower-triangular matrix L and an upper-triangular matrix U, such that, A=L*U. The matrix U is an echelon form of a square matrix A or resembles an echelon form for a general matrix A; the rows of matrix L can be rearranged (permuted) to a lower-triangular matrix with 1’s on the main diagonal. Practical Applications of the LU Factorization for Square Matrices:Part I:When A is invertible, MATLAB uses LU factorization of A=L*U, to find the inverse matrix by, first, inverting L and U and, then, computing A-1=L-1*U-1.**Create a function in MATLAB that will begin with the commands:function [L, U,invA] = eluinv(A)[~,n]=size(A);[L, U] = lu(A);**Verify that A is equal to L*U. If it is the case, display the message:disp('Yes, I have got LU factorization')Note: You will need to use the function closetozeroroundoff for this check and for all other checks that follow.**Verify that U is an echelon form of A. If it is the case, output a message:disp('U is an echelon form of A')If it is not the case, the output message should be something like:disp('Something is wrong')**Next, check whether A is invertible or not. I suggest using the rank command. If A is not invertible, output:sprintf('A is not invertible')invA=[];and terminate the program.**If A is invertible, calculate the inverses of the matrices L and U, invL and invU respectively, by applying the row-reduction algorithm to [L eye(n)] and [U eye(n)].Due to the structure of the matrices L and U, these computations will not take too many arithmetic operations.**Calculate the matrix invA using the matrices invL and invU. (See the theory above).**Run the MATLAB command inv(A) and compare the matrices invA and inv(A)(Of course, you should use the function closetozeroroundoff of their difference.)If invA and inv(A) match, display the message:disp('Yes, LU factorization works for calculating the inverses')Otherwise, the message should be:disp('LU factorization does not work for me?!')**Type the function eluinv in your diary file.**Run the function [L, U,invA] = eluinv(A) on the following matrices:(a) A=[1 1 4;0 -4 0;-5 -1 -8](b) A=magic(4)(c) A=[2 1 -3 1;0 5 -3 5;-4 3 3 3;-2 5 1 3](d) A=magic(3)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Word vocabulary words: print, proofread, status line, graphics, font effects, left margin, justification, line spacing, copy/paste, data. review words: font point, bold, save, center, error. fill in the correct word for the definition and then transfer the letters to the appropriate spot by number. some numbers will be found multiple times. you will end up with a quotation about…… what else? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 k 16 17 18 19 20 21 22 23 24 25 8 27 28 29 w 31 32 k 34 35 36 w h 39 40 41 42 8 44 45 46 47 48 49 50 51 52 53 54 55 .1. a software function that records keystrokes on a disk or drive so information can be 5 4 52 9 later retrieved. p n 2. to produce a paper copy of information. 10 7 12u n 3. a display that shows the location of the cursor, pages, etc. 45 46 18 27 36 20 42p4. pictures or images, located in clip art or other files. 6 24 44 28 34 49 555. any mis-stroke of a key. 47 41 48 2 10 n6. allows major changes to the font such as shadow, emboss, etc. 21 25 46 35 23 21 29 14 22 17 n7. a feature that centers lines of text horizontally. 49 53 46 9 51 p8. size of the font 31 16 22 b l 9. a feature that prints designated text darker than the rest to add emphasis. 32 3 . p10. to compare copy on a display screen or printout to the original 24 39 25 23 54 9 50 3 and correct errors. j un 11. a feature that allows text to be aligned at the left 11 12 7 21 16 49 40 46 34 2 and right margins. leftn 12. amount of blank space on the left side of the paper. 8 18 41 6 34 linen 13. number of blank lines between lines of text. 17 4 49 13 1914. any information inputted into the computer. 3 4 46 44 p /p15. feature that duplicates text from one location and places it in another.
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
Match the function to its purpose. fast worth 50pts.
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 2
question
Computers and Technology, 25.06.2019 04:40
1. instructions: in your response, make an argument for whether for whether it is better for waketown to build its new wake heights subdivision or to preserve the wake wetlan to preserve the wake wetland preserve. use evidence from at least two of the sources below to support your claim. be sure to introduce your precise claim, develop the claim with evidence from the sources, and demonstrate relationships between ideas. (15 points)
Answers: 2
You know the right answer?
Here you will work with LU factorization of an mn× matrix A. Theory: Any mxn matrix A can be reduced...
Questions
question
Mathematics, 03.04.2020 02:52
question
Mathematics, 03.04.2020 02:52
question
Mathematics, 03.04.2020 02:52
question
Mathematics, 03.04.2020 02:52
Questions on the website: 13722359