4. Construct the following matrices in R as described below: 2 3 5 A = 5-1...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. Construct the following matrices in R as described below: 2 3 5 A = 5-1 3 and B == 7 -2 3 6-82 8 4 3 1 9 6 (a) Construct the vector with the elements 2 3 5 5 -1 3 8 4 3 and then fill in the matrix A row by row. (b) Construct the vectors u=[ 7 6 1 ], v=[ -2 -8 9 ] and w=[ 326] and then bind them together to construct the matrix B. (c) Change the element in row 2, column 3 of A to -2. (d) Print the second column of A. (e) Replace the second column of B with the second line of A. (f) Replace the corners of A with the corners of B. (g) Compute the element-wise product of the A and B and then the matrix product. Are the results the same? 4. Construct the following matrices in R as described below: 2 3 5 A = 5-1 3 and B == 7 -2 3 6-82 8 4 3 1 9 6 (a) Construct the vector with the elements 2 3 5 5 -1 3 8 4 3 and then fill in the matrix A row by row. (b) Construct the vectors u=[ 7 6 1 ], v=[ -2 -8 9 ] and w=[ 326] and then bind them together to construct the matrix B. (c) Change the element in row 2, column 3 of A to -2. (d) Print the second column of A. (e) Replace the second column of B with the second line of A. (f) Replace the corners of A with the corners of B. (g) Compute the element-wise product of the A and B and then the matrix product. Are the results the same?
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
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...
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Although epoxides are always considered to have their oxygen atom as part of a threemembered ring, the prefix epoxy in the IUPAC system of nomenclature can be used to denote a cyclic ether of various...
-
Describe the benefits and costs of delaying an investment opportunity?
-
Solve the equation, using the quadratic formula. If the equation has no real solution, so state. 5x 2 - 4x = -2
-
Continuing to focus on evidence associated with the act, concealment, and conversion, use the evidentiary material to continue the examination. In addition, the examiner also starts to think of terms...
-
Doughty Sawmill, Inc., (DSI) purchases logs from independent timber contractors and processes the logs into three types of lumber products: Studs for residential buildings (walls, ceilings)...
-
1.Libby just expanded her restaurant. She projects revenue will reach $35,000 for the new restaurant in the first year and increase by 25% over the next three years. Expenses are 75% of sales. The...
-
Q9: The circuit in the diagram contains capacitors connected in series and in parallel. The total capacitance of the circuit is 36 F. What is the capacitance C? HH C 95 F 25 F
-
When considering fixed costs, one cannot ignore the internal administration costs. human resource cost. company strategy. receiving or loading costs.
-
As demand from the IKEA manufacturer in Question 1 grows, how would you expect the cycle inventory measured in days of inventory to change? Explain.
-
Discuss how various costs for the IKEA manufacturer in Question 1 change as it decreases the lot size ordered from the JAF Group.
-
Consider the following two situationscases A and Bindependently. Data refer to operations for April 2014. For each situation, assume standard costing. Also assume the use of a flexible budget for...
-
What is the descriptive term for demand that occurs not in a steady stream of single units but in periodic large lots? Batch D D Bulky Lumpy Polled
-
(a) If the bicycles 120-mm sprocket wheel rotates through one revolution, through how many revolutions does the 45-mm gear turn? (b) If the angular velocity of the sprocket wheel is 1 rad/s, what is...
-
a. What is the cost of borrowing if Amarjit borrows $28 500 and repays it over a four-year period? b. How many shares of each stock would he get if he used the $28 500 and invested equally in all...
-
David and Darlene Jasper have one child, Sam, who is 6 years old. The Jaspers reside at 4639 Honeysuckle Lane, Los Angeles, CA 90248. David's Social Security number is 577-11-3311, Darlene's is...
-
In 2012, Gale and Cathy Alexander hosted an exchange student, Axel Muller, for 9 months. Axel was part of International Student Exchange Programs (a qualified organization). Axel attended tenth grade...
-
Ray and Maria Gomez have been married 3 years. They live at 1610 Quince Ave., McAllen, TX 78701. Ray works for Palm Oil Corporation and Maria works for the City of McAllen. Maria's Social Security...
-
The global market presents firms with more complex ethical issues than they would experience if operations were limited to one country and one culture. Moral standards vary across cultures. In some...
-
Bhopal is a city in central India with a population, in 1984 , of 800,000 . Because it was, at that time, home to the largest mosque in India, Bhopal was a major railway junction. Its main industries...
-
PricewaterhouseCoopers (or PwC, as it is known), one of the United States' "Big 4" accounting firms, has had a tax practice in Russia since the time that country changed from Communist rule. One of...
Study smarter with the SolutionInn App