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...
-
On October 9, 1992, a 27-pound meteorite struck a car in Peekskill, NY, creating a dent about 22 cm deep. If the initial speed of the meteorite was 550 m/s, what was the average force exerted on the...
-
Three years ago, Debbie Sells and her brother-in-law Mike Mooney opened Family Department Store, Ltd. For the first two years, business was good, but the following condensed income results for 2016...
-
The aqueous two-phase system in Example 13-3 will be used in a batch extraction. \(7.5 \mathrm{~kg}\) of PEG solution contains protein at mass fraction \(\mathrm{x}_{\mathrm{F}}\). Use \(6.0...
-
Nimoy Company makes three models of phasers. Information on the three products is given below. Fixed expenses consist of $300,000 of common costs allocated to the three products based on relative...
-
State in words [briefly], how an entity allocate a contract price with a customer to the performance conditions [assume more than one performance condition] ?
-
Calculate payroll. Example provided for the first pay period Project 1 and Project 2 below. Group insurance 30 for each $1,000 FICA-OASID: 6.2% FICA-HI: 1.45% FUTA: 0.6% SUTA: 3.6890% Example1...
-
A car travels at a constant speed of 3 0 . 0 mi / h ( 1 3 . 4 m / s ) on a level circular turn of radius 5 0 . 0 m , as shown in the birds - eye view in the image below. What minimum coefficient of...
-
JKL Corporation has projected a sales volume of $1,467 for Year 2 of a proposed expansion project. Costs normally run 75% of sales, or approximately $1,100 in this case. Depreciation expense runs...
-
Explain what social psychology is? Research the history of social psychology and the subjects that social psychologists investigate.? What is the difference between sociological social psychology and...
-
This exercise stresses the relationships between the information recorded in a periodic inventory system and the basic elements of an income statement. Each of the five lines represents a separate...
-
John OSullivan coined the phrase Manifest Destiny in 1845.What did he mean by the phrase and is there any difference betweenthen and now in how historians apply the term? Did the term have aneffect...
-
RentGo Company has fixed costs of $ 7 5 , 0 0 0 per month. Each rental unit sells for $ 1 2 5 per day. The variable cost per rental unit is $ 2 5 per day. If next month\'s sales volume is budgeted at...
-
A 1 kg box has an initial speed of v-9 m/s and is sliding up a slope as shown in the image below. If the coefficient of friction is mu=0.2, what is the speed of the box once it has travelled a...
-
Convert the numeral to a HinduArabic numeral. A94 12
-
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
-
When incomes rise, the demand for health care _________ because health care is a _________ good.
-
_________ exists in health care when insurance makes a person more likely to engage in more risky behavior and less likely to take preventative measures against illness.
-
Third-party payers attempt to reduce moral hazard problems with _________ and _________.
Study smarter with the SolutionInn App