1. Calculate the following by Matlab: sin(0.27) COS Hint: it is pi in Matlab; use nthroot...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Calculate the following by Matlab: sin(0.27) COS Hint: it is pi in Matlab; use nthroot function. 2. With Matlab, define the variables c=4.5, d=1.7, a=cd² and b=+ c-d 2 3 4 ² cd. 3. Given are 5x6 matrix A, a 3x6 B and a 9- element vector v. [258 11 14 17 369 12 15 18 A 47 10 13 16 19 58 11 14 17 20 ¹6 9 12 15 18 21 5 6 + tan 72⁰ - 5 a 5 10 15 20 6 9 12 15 18 7 30 35 40 45 8 95 94 93 92 9 60 65 70 75 2.1x10-15.2x10³ 3x √6x10¹1 5 10 15 20 25 30 B = 30 35 40 45 50 55 55 60 65 70 75 80] Create the three arrays in the Command Window, and then, by writing one command, Replace the last four columns of the first and third rows of A with the first columns of the first tow rows of B, the last four columns of the fourth row of A with the elements 5 through 8 of v, and the last four columns of the fifth row of A with columns 3 through 5 of the third row of B. You should have: A = 7 then evaluate: v = [99 98 97 96 95 94 93 92 91] 4. Create a variable N that is a column vector with seven equally spaced elements in which the first element is 44 and the last element is 23. 5. Create the following three row vector: a=[5 8-102], b= [4 19-2 3], and c-[-3 5061]. a) Use the three vectors in Matalb command to creat 3x5 matrix in which the rows are the vectors c, b and a, respectively. b) Use the three vectors in a Matalb command to create a 5x3 matrix in which the columns are the vectors c, v, and a, respectively. 1. Calculate the following by Matlab: sin(0.27) COS Hint: it is pi in Matlab; use nthroot function. 2. With Matlab, define the variables c=4.5, d=1.7, a=cd² and b=+ c-d 2 3 4 ² cd. 3. Given are 5x6 matrix A, a 3x6 B and a 9- element vector v. [258 11 14 17 369 12 15 18 A 47 10 13 16 19 58 11 14 17 20 ¹6 9 12 15 18 21 5 6 + tan 72⁰ - 5 a 5 10 15 20 6 9 12 15 18 7 30 35 40 45 8 95 94 93 92 9 60 65 70 75 2.1x10-15.2x10³ 3x √6x10¹1 5 10 15 20 25 30 B = 30 35 40 45 50 55 55 60 65 70 75 80] Create the three arrays in the Command Window, and then, by writing one command, Replace the last four columns of the first and third rows of A with the first columns of the first tow rows of B, the last four columns of the fourth row of A with the elements 5 through 8 of v, and the last four columns of the fifth row of A with columns 3 through 5 of the third row of B. You should have: A = 7 then evaluate: v = [99 98 97 96 95 94 93 92 91] 4. Create a variable N that is a column vector with seven equally spaced elements in which the first element is 44 and the last element is 23. 5. Create the following three row vector: a=[5 8-102], b= [4 19-2 3], and c-[-3 5061]. a) Use the three vectors in Matalb command to creat 3x5 matrix in which the rows are the vectors c, b and a, respectively. b) Use the three vectors in a Matalb command to create a 5x3 matrix in which the columns are the vectors c, v, and a, respectively.
Expert Answer:
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these computer network questions
-
Compute the Simple Average for July, August, September Compute the 4 month simple moving average for July, Aug, Sep Compute the weighted moving average for July using the weights of 50%, 30% and 20%....
-
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...
-
Record your responses on the spreadsheet template. 2014 February 1 - Brady and Manning decide to start up a partnership. Brady brings in $10 000 cash and equipment costing $60 000, with $17 000 in...
-
Mr. and Mrs. Dane and their six children own 100 percent of the stock in three family corporations. Do these corporations qualify as an affiliated group eligible to file a consolidated corporate tax...
-
In 2008, Goldman and Romley studied hospital demand by analyzing how 8,721 Medicare-covered pneumonia patients chose from among 117 hospitals in the greater Los Angeles area. The authors concluded...
-
Consider a single-mode laser emitting light described by the analytic signal \[ \mathbf{u}(t)=\exp (-j[2 \pi \bar{v} t-\theta(t)]) \] (a) Assuming that \(\Delta \theta=\theta\left(t_{2}...
-
Magnetics International wrote off the following accounts receivable as uncollectible for the year ending December 31, 2012: Customer Amount Trey Betts .... $15,500 Cheryl Carson .... 9,000 Irene...
-
Evaluate lim lim (4.3 lim x-1 (423 - 10x+13 -13). 10x+13 =Number
-
6. Write an SQL script that does the following and save this script as CIS276DA_FinalExercise6_MEID.sql . Save the output of this script as CIS276DA_FinalExercise6_MEID.csv Your results should...
-
The amount of nitrogen dioxide, a brown gas that impairs breathing, present in the atmosphere on a certain May day in the city of Long Beach is approximated by A(t) = where A(t) is measured in...
-
Critically evaluate the importance of understanding the external environment when developing a marketing campaign.
-
Critically evaluate the notion that segmentation is crucial to the success of a marketing campaign.
-
Why is it important for companies to develop and maintain brands?
-
It is often thought that marketing has evolved over the years, through a number of orientations (production, product, sales, etc.). To what extent are these orientations valid and what might be the...
-
Traditional advertising methods are no longer relevant. Critically evaluate this notion.
-
Suppose there are two consumers, each with a different willingness to pay for a monopolists product, as shown in Table 3. Assume that the monopolists marginal and fixed costs are zero. The monopolist...
-
Find i 0 (t) for t > 0 in the circuit in Fig. 16.72 . 2 + Vo 1 7.5e-2t u(t) V ( +) 4.5[1 u(t)]V 0.5v. 1H
-
Write a MATLAB program that uses implicit Euler and centered finite differences to solve the diffusionreaction equation subject to c(0, t) = 1, c(1, t) = 1, and c(x, 0) = 1. at 2 2 = D. - Kc (7.2.31)
-
Solve the following ordinary differential equation y=3xy, y(3) = 1
-
Determine the trajectory of the kinetic system with initial conditions A(0) = 1 and B(0) = 2. Does the system reach steady state? dA dt dB dt = 2A- 3B -4A + B
-
solve the given problem using PSO method \[f(X)=1200\left(2 x_{1} x_{3}+2 x_{2} x_{3} ight)+2500 x_{1} x_{2}+500\left(\frac{1000}{x_{1} x_{2} x_{3}} ight)+100\left(\frac{1000}{10 x_{1} x_{2} x_{3}}...
-
Solve the optimization problem using SA \[\min f(X)=100\left(x_{1}^{2}+x_{2} ight)^{2}+\left(1-x_{1} ight)^{2}\] subject to $X \in[0,7]$
-
Discuss the perturbation mechanism of simulated annealing.
Study smarter with the SolutionInn App