Write the commands to execute the following: 6. Create a 3X3 matrix, A, with the elements,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write the commands to execute the following: 6. Create a 3X3 matrix, A, with the elements, 12, 40, 5 in the 2nd Row, 9, 14, 20 in the first row and 50, 17, 1 in the 3rd row. Create matrix B, a 3X3 with random integer elements from MATLAB, within the range of 0 to 10. [1 mark] 7. Multiply matrix B by its identity matrix. [1 mark] 8. Multiply matrix A by its null matrix. [1 mark] 9. Place the first column of B into the last column of A. [1 mark] 10. Place the last row of B into the last row of A. [1 mark] 11. Place the first row of A into the 2nd column of B. [1 mark] 12. Extract a 2x2 matrix from matrix A and store it in a matrix named C. [1 mark] 13. Find the inverse of C. [1 mark] 14. Find the absolute value of all the elements in matrix B. [1 mark] 15. Find the result of num1 raised to the power of num2: [1 mark, both ways] Write the commands to execute the following: 6. Create a 3X3 matrix, A, with the elements, 12, 40, 5 in the 2nd Row, 9, 14, 20 in the first row and 50, 17, 1 in the 3rd row. Create matrix B, a 3X3 with random integer elements from MATLAB, within the range of 0 to 10. [1 mark] 7. Multiply matrix B by its identity matrix. [1 mark] 8. Multiply matrix A by its null matrix. [1 mark] 9. Place the first column of B into the last column of A. [1 mark] 10. Place the last row of B into the last row of A. [1 mark] 11. Place the first row of A into the 2nd column of B. [1 mark] 12. Extract a 2x2 matrix from matrix A and store it in a matrix named C. [1 mark] 13. Find the inverse of C. [1 mark] 14. Find the absolute value of all the elements in matrix B. [1 mark] 15. Find the result of num1 raised to the power of num2: [1 mark, both ways]
Expert Answer:
Answer rating: 100% (QA)
Here are the MATLAB commands to perform the tasks youve described Create matrix A A 9 14 20 1... View the full 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 computer network questions
-
What are similarities and differences between a Data Flow Diagram (DFD) and an Entity-Relationship Diagram (ERD)? and what are reasons why you would choose one approach over the other?
-
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...
-
Derive the differential equation governing the lateral torsional buckling behavior of a simply supported I-beam subjected to unequal end moments as shown in Fig. P5.1. M BM
-
Analyze the case study, "Frank Smith Plumbing." Analyze the "Frank Smith Plumbing's Financial Statement" spreadsheet. Compare the cost of the truck to the cash flow records Compile your calculations...
-
Use the differential equation approach to find i0(t) for t > 0 in the circuit in Fig. P.20 and plot the response including the time interval just prior to opening the switch. 24V 0 2 H 6 io(t)
-
In 2001, three dentists-Ben Rogers, Judy Wilkinson, and Henry Walker-formed a partnership to open a practice in Toledo, Ohio. The partnership's primary purpose was to reduce expenses by sharing...
-
Show that when two identical detectors in an intensity interferometer have read noise with the same variance \(\sigma_{\text {read }}^{2}\) and when the average intensities incident on the two...
-
At May 31, 2012, the accounts of Contreras Manufacturing Company show the following. 1. May 1 inventoriesfinished goods $12,600, work in process $14,700, and raw materials $8,200. 2. May 31...
-
Describe some of the advantages & disadvantages of remote work arrangements. Give a personal example of someone you know or know of (including yourself if applicable) who works remotely, or who...
-
Part I of this case, presented in Chapter 3, discussed the situation of D'Leon Inc., a regional snack foods producer, after an expansion program. D'Leon had increased plant capacity and undertaken a...
-
What is a trial balance? With respect to the accounting cycle, why do we need to prepare both a trial balance and an adjusted trial balance? Why is it necessary for us to prepare adjusting journal...
-
15. What is the main cause of immunodeficiency in AIDS patients? A) Malnutrition B) Human immunodeficiency virus (HIV) infection C) Deficiency of C1 inhibitor D) Failure of helper T cells to produce...
-
7. Which cell types are affected in Chediak-Higashi syndrome? A) Leukocytes, blood platelets B) Red blood cells, leukocytes C) Helper T cells D) Neutrophils, macrophages 8. What is the defective...
-
How to update multiple listviews with multiple columns that has the name, total amount of the items in the name, quantity and total amount in total in the last row of the total. 1:59 Item name Num $$...
-
Given the current account bilateral surplus of Germany with the US, one might say that German savers will be financing President Bidens infrastructure program. Explain the economics underlying this...
-
A new three-year CMO has two tranches. The 'A' tranche has a principal of $59.5 million with an annual-coupon of 5.41%. The 'Z' tranche has a coupon of 7.37% with a principal of $67.1 million. The...
-
Why is it so important to be able to amplify DNA fragments when studying genes? OA) A clone requires multiple copies of each gene per clone. OB) Restriction enzymes (endonucleases) cut DNA into...
-
One study found that the elderly who do not have children dissave at about the same rate as the elderly who do have children. What might this finding imply about the reason the elderly do not dissave...
-
Sherry rents her vacation home for 6 months and lives in it for 6 months during the year. Her gross rental income during the year is $4,000. Total real estate taxes for the home are $950, and...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family. Ivan and Irene have the following investment income, in addition to that reported in Chapter 1: Dividends...
-
Professor Patricia (Patty) Pate is retired from the PalmSprings Culinary Arts Academy (PSCAA). She is a single taxpayer and is 68 years old. Patty lives at 98 Colander Street, Henderson, NV 89052....
-
The following data were obtained for a proprietary salad dressing tested at $22^{\circ} \mathrm{C}$ in a cup and bob viscometer (cup diameter $=4.2 \mathrm{~cm}$, bob diameter $=4.01 \mathrm{~cm}$,...
-
An inclined tube manometer with a reservoir is used to measure the pressure gradient in a large pipe carrying oil $(\mathrm{SG}=0.91)$ (see Figure $\mathrm{P} 4.5)$. The pipe is inclined at an angle...
-
A mercury manometer is used to measure the pressure drop across an orifice that is mounted in a vertical pipe. A liquid with a density of $0.87 \mathrm{~g} / \mathrm{cm}^{3}$ is flowing upward...
Study smarter with the SolutionInn App