2. Matrix manipulation We have learned different kinds/ways of manipulating matrix, such as how to access...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Matrix manipulation We have learned different kinds/ways of manipulating matrix, such as how to access matrix elements, concatenate matrix, as well as sub-matrices, adding/removing row/column. For details please refer to the lecture handout, then do the following exercises. Exercise 3 Create the following matrices, [10 11 121] a 13 14 15 16 17 18 b = [20 21 22 23] [50] C = 51 [52] Do the following exercise. Show your commands together with the results in Matlab. No points without Matlab commands. (a) Create a matrix U by adding c to the right of a. You should get a 3x4 matrix. (b) Add matrix b to the 2nd row of matrix U to create matrix V (4x4 matrix). (c) Create a matrix F from the 2nd and 3rd columns of matrix a. (d) Create a matrix W by inserting c between the 1st and 2nd column of a. You will get a 3x4 matrix. (e) Create a column vector X with the first element equal to the number on the 2nd row & 3rd column of W, the second element from the 3rd row & 1st column of F, and the third element from the 8th number from U. 2. Matrix manipulation We have learned different kinds/ways of manipulating matrix, such as how to access matrix elements, concatenate matrix, as well as sub-matrices, adding/removing row/column. For details please refer to the lecture handout, then do the following exercises. Exercise 3 Create the following matrices, [10 11 121] a 13 14 15 16 17 18 b = [20 21 22 23] [50] C = 51 [52] Do the following exercise. Show your commands together with the results in Matlab. No points without Matlab commands. (a) Create a matrix U by adding c to the right of a. You should get a 3x4 matrix. (b) Add matrix b to the 2nd row of matrix U to create matrix V (4x4 matrix). (c) Create a matrix F from the 2nd and 3rd columns of matrix a. (d) Create a matrix W by inserting c between the 1st and 2nd column of a. You will get a 3x4 matrix. (e) Create a column vector X with the first element equal to the number on the 2nd row & 3rd column of W, the second element from the 3rd row & 1st column of F, and the third element from the 8th number from U.
Expert Answer:
Answer rating: 100% (QA)
2 Matrix manipulation We have learned different kindsways of manipulating matrix such as how to acc... View the full answer
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date:
Students also viewed these programming questions
-
Should the government itself become an insurer of last resort, or would betterregulation of the private insurance industry ensure better results?
-
A researcher wanted to find out if there was difference between older movie goers and younger movie goers with respect to their estimates of a successful actors income. The researcher first...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Marks 1. Find the limits, if they exist. If a limit does not exist, check whether the function approaches +00 x2 + 2x - 15 (5) (a) lim x-3 x2-4x +3 x2 - 4 (5) (b) lim x2 x4 - 16 Carol Ferland CF...
-
Let the vortex/sink flow of Eq. (4.134) simulate a tornado as in Fig. P8.25. Suppose that the circulation about the tornado is Γ = 8500 m2/s and that the pressure at r = 40 m is 2200 Pa less...
-
A Ferris wheel of radius 30 feet is rotating counterclock-wise with an angular velocity of 2 radians per second. How fast is a seat on the rim rising (in the vertical direction) when it is 15 feet...
-
There shall be no flow of water from a centrifugal pump until the pressure rise in the impeller is greater than the (a) suction head (b) delivery head (c) static head (d) manometric head
-
Braxton Technologies, Inc., constructed a conveyor for A&G Warehousers that was completed and ready for use on January 1, 2011. A&G paid for the conveyor by issuing a $100,000, four-year note that...
-
Leadership is an integral element in any job, regardless of the work title. However, it is important to recognize that leadership is not just one single skill; instead, success in leadership depends...
-
Defend the significance of LG considering the opinions of an executive jury when formulating the business's inventory management policy.
-
Standford Corporation has provided the following data for the month of February: Prepare a Schedule of Cost of Goods Manufactured in good form. Compute the Cost of Goods Sold. Prepare an Income...
-
Can you reply to this classmate agreeing with their comment? I think the team worked adequately in the scenario I think they could have worked on communicating better. With that being said I think...
-
Intangible assets have three main characteristics: identifiable, non - physical existence, and non - financial assets. Some intangible assets have a limited useful life, and some have unlimited...
-
4. You purchase a home movie theatre and sound system for $6,000 and use your credit card for the purchase. You do not make a payment towards this balance for three years. The annual interest rate is...
-
While Ben looked through the resources on the IRS website, he found "fill - in forms" available. How do these forms differ from tax preparation software?
-
Financial responsibility is a key factor in performance evaluation of all managers. Mr Adam believes that his policy of allowing the divisional managers to participate in the budget process and...
-
A textile mill completes their production in four process, spinning, dyeing, weaving and finishing. Direct materials are added last, then conversion costs are added incrementally throughout. The...
-
Quadrilateral EFGH is a kite. Find mG. E H <105 G 50 F
-
Professor Bacon claims that the algorithm for strongly connected components would be simpler if it used the original (instead of the transpose) graph in the second depth-first search and scanned the...
-
Knuth [212] has shown that there are always roots of optimal subtrees such that root[I, j 1] root[I, j] root[i + 1, j] for all 1 i < j n. Use this fact to modify the OPTIMAL-BST procedure to run...
-
The off-line minimum problem asks us to maintain a dynamic set T of elements from the domain {1, 2, . . . ,n} under the operations INSERT and EXTRACT-MIN. We are given a sequence S of n INSERT and m...
-
Why is it important to test a theory? Why not simply accept a theory if it sounds right?
-
What is the intuition behind the geometric growth in interest?
-
You have $100,000 to donate to your college. You want to endow a perpetual scholarship that makes its first payment in 1 year. If the colleges discount rate is 4%, how large will the annual...
Study smarter with the SolutionInn App