3. (20 points) Given are a 4 x 4 matrix A, a 3 x 5 matrix...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. (20 points) Given are a 4 x 4 matrix A, a 3 x 5 matrix B, and a 7-element vector C. A= r2 1 3 15 6 10 141 11 21 31 69 12 13 21 29 4 9 14 19 241 B= 12 13 14 15 16 11 22 33 44 55] C=[65 63 61 59 57 55 53] Create the three arrays in the command window (using colon notation), and then, by writing one command for each of the following, replace a) the last two columns of the first and second rows of A with the second and third columns of the first two rows of B b) the last two columns of the second row of A with the elements of 4 through 5 of C, c) and the last two columns of the third row of A with columns of 4 through 5 of the second row of B. 4. (15 points) Write a script M-file to create a matrix called km_to_ft composed of two columns, the first giving the values in km and the second one giving the corresponding value in ft. First, specify an appropriate numerical display format. Then, create a variable named km, which holds 30 uniformly distributed random numbers between 0 and 200. Then, perform the conversion. Make sure to display your data in scientific 5-digit format. Save the matrix (named km_to_ft) to a file called km2ft.dat. 3. (20 points) Given are a 4 x 4 matrix A, a 3 x 5 matrix B, and a 7-element vector C. A= r2 1 3 15 6 10 141 11 21 31 69 12 13 21 29 4 9 14 19 241 B= 12 13 14 15 16 11 22 33 44 55] C=[65 63 61 59 57 55 53] Create the three arrays in the command window (using colon notation), and then, by writing one command for each of the following, replace a) the last two columns of the first and second rows of A with the second and third columns of the first two rows of B b) the last two columns of the second row of A with the elements of 4 through 5 of C, c) and the last two columns of the third row of A with columns of 4 through 5 of the second row of B. 4. (15 points) Write a script M-file to create a matrix called km_to_ft composed of two columns, the first giving the values in km and the second one giving the corresponding value in ft. First, specify an appropriate numerical display format. Then, create a variable named km, which holds 30 uniformly distributed random numbers between 0 and 200. Then, perform the conversion. Make sure to display your data in scientific 5-digit format. Save the matrix (named km_to_ft) to a file called km2ft.dat.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
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...
-
Before a change occurs, it is important that change agents form a compelling "picture" of what the future after the change will look like. This picture should motivate employees and keep the change...
-
Digital Camera Shop Inc. uses the lower-of-cost-or-market basis for its inventory. The following data are available at December 31. Instructions What amount should be reported on Digital Camera...
-
Osborn, Inc., produces cell phone equipment. Amanda Westerly, Osborn's president, decided to devote more resources to the improvement of product quality after learning that her company had been...
-
Duane Mays established an insurance agency on July 1 of the current year and completed the following transactions during July: a. Opened a business bank account with a deposit of $18,000 from...
-
The Arrow-Pratt relative risk aversion coefficient is \[\mu(x)=\frac{x U^{\prime \prime}(x)}{U^{\prime}(x)} .\] Show that the utility functions $U(x)=\ln x$ and $U(x)=\gamma x^{\gamma}$ have constant...
-
The following balances come from the trial balance of Wilson State College as of the end of the 2020 fiscal year. Required a. Prepare a statement of revenues, expenses, and changes in net position...
-
Divide the following two complex numbers. 4-31 3+21
-
Sofia Lofts case, but under a new set of assumptions on page 11 of the case. First re-read the Sofia Lofts case, then click here to download the new page 11. Specifically, you are to write up a brief...
-
What is the oldest European-founded city in the United States?
-
Amber has a Homeowners 3 policy. The dwelling is insured for $150,000 and the replacement cost of the home is $250,000. Indicate whether or not each of the following losses is covered. If possible,...
-
In the current Era what did you think Should prisoners receive more rights than they currently have? Why or why not? Discuss your position and justify your response.
-
Vision without action is a daydream. Action without vision is a nightmare. In your opinion how do you understand these quote in regards of the International Business activities.
-
I feel that having it mandatory by law would help employees take rules more serious and not wanting to attempt to try to surf the web or whatever they could be doing. Elaborate the statement with the...
-
Summarize the facts of the case briefly - two or three sentences is ok, but include in your discussion the facts that become important to the Court's decision. Then, summarize the primary holding of...
-
On September 1, 2020 WayTooBig (WTB) Company decided it would sell off its LargerThanLarge (LTL) division. The division qualifies as a component of the organization. Disposal of the LTL division will...
-
Find a least expensive route, in monthly lease charges, between the pairs of computer centers in Exercise 11 using the lease charges given in Figure 2. a) Boston and Los Angeles b) New York and San...
-
You are concerned with how well college-educated women in Wisconsin cope with divorce. You have reason to believe that they cope better than the general population. You sample 100 female...
-
You are given the following information for the data displayed in the scatterplot in Exercise 5. Least squares prediction equation: Y' = .34(X) .56 SS y = 826.23 SS y |x = 145.44 Using this...
-
Kowalski and Taylor (2009) observed that students in an introductory psychology course often enter the course with misconceptions and complete the course with the misconceptions intact. One example...
-
Find one solution for each of the difference equations below: (a) \(y(n)+2 y(n-1)+y(n-2)=0, y(0)=1\) and \(y(1)=0\) (b) \(y(n)+y(n-1)+2 y(n-2)=0, y(-1)=1\) and \(y(0)=1\).
-
We define the even and odd parts of a sequence \(x(n), \mathcal{E}\{x(n)\}\) and \(\mathcal{O}\{x(n)\}\) respectively, as \[\begin{aligned}\mathcal{E}\{x(n)\} & =\frac{x(n)+x(-n)}{2}...
-
Find the general solution for the difference equation in Example 1.9 when \(a=b\). Example 1.9. Solve the difference equation y(n) + ay(n 2) = b" sin(n)u(n) assuming that ab and y(n) = 0, for n < 0....
Study smarter with the SolutionInn App