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...
-
Find the isothermal compressibility of a Van der Waals gas as a function of volume V at temperature T. Note. By definition, = 1/V V/p.
-
For each entry below make a correcting entry if necessary. If the entry given is correct, then state "No entry required". (Credit account titles are automatically indented when the amount is entered....
-
Class Year in Statistics The StudentSurvey data file contains information from a survey done the first day of an introductory statistics course. The Year variable shows the class year (FirstYear,...
-
The probability that a gambler plays table games is 0.32. The probability that a person plays the slot machines is 0.85. The probability that a person plays both is 0.15. A gambler can play more than...
-
The following information is available for Oriole Company for the year ended December 31, 2022: Accounts payable 4,900 Stock investments (long-term) 9,100 Accumulated depreciation, equipment 4,400...
-
Comprehensive Problem 1 - Part 1: Taxpayer information, Form 1040, Schedules 1, 2, 3 and 4, Schedule A, and Schedule B. Noah and Joan Arc's Tax Return Note: This problem is divided into three parts....
-
Does US law protect property rights of parties other than property owners? If so, give 3 examples?
-
How do investors develop proprietary deal flow?
-
How can entrepreneurs best prepare for their fundraising pitch?
-
Why are convertible notes said to be "unpriced?"
-
What are the most important criteria for assessing the fit between an entrepreneur and an investor?
-
Why do certain seed investors prefer convertible notes?
-
describe Phelan's theory of fundamental causes, and how doesthis theory help us conceptualize the relationship betweensocioeconomic status and disease outcomes
-
Drainee purchases direct materials each month. Its payment history shows that 65% is paid in the month of purchase with the remaining balance paid the month after purchase. Prepare a cash payment...
-
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...
-
Show that if two given networks are described by \(Y_{i}=\sum_{j=1}^{M} T_{i j} X_{j}\) and \(Y_{i}^{\prime}=\) \(\sum_{j=1}^{M} T_{i j}^{\prime} X_{j}^{\prime}\), then these networks are...
-
Some FIR filters present a rational transfer function: (a) Show that the transfer function \[H(z)=\frac{\left(r^{-1} z ight)^{-(M+1)}-1}{r e^{\mathrm{j} 2 \pi /(M+1)} z^{-1}-1}\] corresponds to an...
-
Plot the pole-zero constellation as well as the magnitude response of the transfer function of Exercise 4.20 for \(M=6,7,8\) and comment on the results. Exercise 4.20 Some FIR filters present a...
Study smarter with the SolutionInn App