Question

In: Electrical Engineering

10? + 50? + 20? + 10? = 100 5? + 15? + 75? − 25?...

10? + 50? + 20? + 10? = 100

5? + 15? + 75? − 25? = 200

25a − 15? − 5? = 300

10? + 20? − 30? + 100? = 400

how to write coding in matlab using lu decomposition

Solutions

Expert Solution

>> A=[10 50 20 10;5 15 75 -25;25 0 -15 -5;10 20 -30 100]

A =

    10    50    20    10
     5    15    75   -25
    25     0   -15    -5
    10    20   -30   100

>> [L,U]=lu(A)

L =

    0.4000    1.0000         0         0
    0.2000    0.3000    1.0000         0
    1.0000         0         0         0
    0.4000    0.4000   -0.4900    1.0000


U =

   25.0000         0 -15.0000   -5.0000
         0   50.0000   26.0000   12.0000
         0         0   70.2000 -27.6000
         0         0         0   83.6752

Thus, the code decomposes matrix A into lower triangular matrix (L) and upper triangular matrix (U).


Related Solutions

10? + 50? + 20? + 10? = 100 5? + 15? + 75? − 25?...
10? + 50? + 20? + 10? = 100 5? + 15? + 75? − 25? = 200 25a − 15? − 5? = 300 10? + 20? − 30? + 100? = 400 how to do flowchart using gauss elimination and lu decomposition method
investment poor average good A 50 75 20 B 80 15 40 C -100 300 50...
investment poor average good A 50 75 20 B 80 15 40 C -100 300 50 Maximax, Maximin, Minimax Regreat, Hurxicz 0.4, Equal liklihood
a. Sort the list A[ ]={ 20, 13,4, 34, 5, 15, 90, 100, 75, 102, 112,...
a. Sort the list A[ ]={ 20, 13,4, 34, 5, 15, 90, 100, 75, 102, 112, 1} using Insertion Sort and determine the total number of comparisons made (do not count swaps) b. Sort the list stated in 5a) but using Merge Sort
Sort the list A[ ]={ 20, 13,4, 34, 5, 15, 90, 100, 75, 102, 112, 1}...
Sort the list A[ ]={ 20, 13,4, 34, 5, 15, 90, 100, 75, 102, 112, 1} using Insertion Sort and determine the total number of comparisons made (do not count swaps) b.Sort the list stated in 5a) but using Merge Sort
Stock Initial Price Shares (million) ABC $25 20 LMN $50 5 PDQ $5 200 XYZ $100...
Stock Initial Price Shares (million) ABC $25 20 LMN $50 5 PDQ $5 200 XYZ $100 1 For the above stocks 1. a. Calculate the price-weighted average of the four stocks. b. What is the divisor to produce the base figure market value-weighted index? 2. Suppose the price for LMN and ABC stay the same, XYZ’s price increases to $110, and PDQ’s falls to $2 a. Calculate the price-weighted average of the four stocks. b. Calculate the market value-weighted index...
Consider a list called A: A = [-6, 10, 100, 5, -20, 1000, 9, -15] Make...
Consider a list called A: A = [-6, 10, 100, 5, -20, 1000, 9, -15] Make a for loop that iterates over A and: If number is negative, print the square of the number. if number is positive but less than or equal to 100, print the number itself. if number is positive but greater than 100, print 0.
Calculate F Test for given 10, 20, 30, 40, 50 and 5,10,15, 20, 25. For 10,...
Calculate F Test for given 10, 20, 30, 40, 50 and 5,10,15, 20, 25. For 10, 20, 30, 40, 50:
Make a Frequency Distribution Chart for the following set of Data 50, 10, 25, 20, 20,...
Make a Frequency Distribution Chart for the following set of Data 50, 10, 25, 20, 20, 20, 50,100, 30, 15
Question 1 For the dataset: 20, 20, 10, 10, 40, 50, 20, 30, 10, 20, 50,...
Question 1 For the dataset: 20, 20, 10, 10, 40, 50, 20, 30, 10, 20, 50, 60, 20, 30, 50, 20, 30, 40, 30, 30, 30, 50, 40 calculate the max, min, mode, median and mean.(20%) Draw a boxplot with inner and outer fence For the data in part (i), if the value 60 was replaced by 2000, what would you call this value in the dataset? What could be the explanation for such a value? How can you through...
Final_exam assignment_grade Tutorial_attend 100 90 5 100 75 5 90 75 5 85 85 5 85...
Final_exam assignment_grade Tutorial_attend 100 90 5 100 75 5 90 75 5 85 85 5 85 100 5 80 95 5 70 80 5 60 95 5 60 80 5 55 95 5 55 25 4 50 80 5 45 90 5 40 65 5 40 65 4 35 0 3 30 70 4 30 55 4 25 85 5 25 90 4 15 5 3 15 80 5 15 50 5 15 45 3 5 75 3 5 70...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT