1

# Compute the following problems using Math Lab.   Instructions: Answer All Questions using MATLAB commands. Question 1....

## Question

###### Compute the following problems using Math Lab.   Instructions: Answer All Questions using MATLAB commands. Question 1....

Compute the following problems using Math Lab.  Instructions: Answer All Questions using MATLAB commands. Question 1. Create a vector of the even whole numbers between 31 and 75. Question 2. Let x  a. Add 16 to each element b. Add 3 to just the odd-index elcments c. Compute the square root of each element d. Compute the square of each element Question 3. Let x 13 268T and y [4 1 3 5] (NB. x and y should be column vectors) a. Add the sum of the elements in x to y b. Raise cach element of x to the power specified by the corresponding element in y c. Divide each element of y by the corresponding element in x d. Multiply each element in x by the corresponding element in y, calling the result "z" f. Compute x *y - w and interpret the result e. Add up the elements in z and assign the result to a variable called "w" Question 4. Evaluate the following MATLAB expressions by hand and use MATLAB to check the answers a. 2/2 *3 b. 6-2/5+72-1 c. 10/215-3+2 4 d. 342/4 e, 3^2^2 f. 2+ round (6/9+32)/2-3 g. 2floor (6/9+3 2)/2-3 h. 2+ceil (6/9+3* 2)/2-3 Question 5. Create a vector x with the elements... b. 10, 8, 6, 4, 2, 0, -2,-4 d. 0, 1/2, 2/3, 3/4, 4/5, Question 6. Create a vector x with the elements, X)(2n-1) Add up the elements of the vcrsion of this vector that has 100 elements. Question 7. Write down the MATLAB expression(s) that will a.... compute the length of the hypotenuse of a right triangle given the lengths of the other two sides (try to do this for a vector of sidc-length values)
b.... compute the length of the third side of a triangle given the lengths of the other two sides, given the cosine rule c- a +b'- 2(a)*(b) cos(t) where t is the included angle between the given sides. Question 8. Given a vector, t, of length n, write down the MATLAB expressions that will correctly compute the following: a. In (2 +t2) b. e( cos(3t)) c. cos2 (t)+ sin2(t) d. tan (this is the inverse tangent function) e. cot (t) f. sec (t)+cot(t) 1 Test that your solution works for 1:02: 2 Question 9. Plot the functions x, x3, e and c2 over the interval 0<x <4... Question 10. Make a good plot (i.e., a non-choppy plot) of the function F(x)-sin(1/x) for 0.01 x 0.1. Explain how you created 'x' so that the plot looked good?

#### Similar Solved Questions

##### Question 13 5 pts A far-sighted person can see his iPhone clearly only if he holds...
Question 13 5 pts A far-sighted person can see his iPhone clearly only if he holds it 40 cm away a farther from his eyes. What should be the prescription of his contact lenses, if he wants to clearly see his phone at a distance of 25 cm? O +1.5 D 0 -1.5 D 0 +6.5D O -6.5 D O -2.4D...
##### Consider the following unbalanced equation: H2SO4(aq)+Fe(s)H2(g) + Fe2(SO4)3(aq) If 17.6 moles of H2SO4 ( aq) and...
Consider the following unbalanced equation: H2SO4(aq)+Fe(s)H2(g) + Fe2(SO4)3(aq) If 17.6 moles of H2SO4 ( aq) and 10.2 moles of Fe(s) are allowed to react, what is the theoretical yield of H2(g) in moles? 21.0 moles 88.4 moles 81.7 moles 15.3 moles 12.3 moles Use the slider to rate your confidence o...
##### Your Pizza is a small pizzeria at Tuskegee, AL. In the table following, the difference in...
Your Pizza is a small pizzeria at Tuskegee, AL. In the table following, the difference in cost structure is summarized. Note that both plants are assumed to have the same labor costs of \$400 per week, the same fixed cost of \$1,000 per oven per week, and the same opportunity cost of \$500 per week. No...
##### How do you solve #log 5 = (x+1) log 4#?
How do you solve #log 5 = (x+1) log 4#?...
##### Write the condensed electron configuration: Re Re^4+ Re^6+ Re^7+
write the condensed electron configuration: Re Re^4+ Re^6+ Re^7+...
##### Q3. (10 POINTS) Given the following temperature and elevation data, determine the stability of the atmosphere....
Q3. (10 POINTS) Given the following temperature and elevation data, determine the stability of the atmosphere. Elevation (m) 10 50 100 150 200 250 300 Temperature (°C) 14.25 13.85 13.35 12.85 12.35 11.85 11.11...
##### What is the value today of \$1,800 per year, at a discount rate of 10 percent,...
What is the value today of \$1,800 per year, at a discount rate of 10 percent, if the first payment is received 8 years from now and the last payment is received 32 years from today?...
##### Calculate the change in Entropy 3. One mole of CO gas is transformed from an initial...
Calculate the change in Entropy 3. One mole of CO gas is transformed from an initial state of Ti=320K and Vi=20L to a final state of Tf=650K and Vf=120L. The temperature dependence of Cv,m is given as C = a +bT +cT? +dT”; a=31.08, b=-0.01452K-'; c=3.14x10--K?,b=-1.498x10K-...
##### The moon is 3.5 x 10 m in diameter and 3.8 x 108 m from the...
The moon is 3.5 x 10 m in diameter and 3.8 x 108 m from the earth's surface. The 1.8-m-focal length converging mirror of a telescope focuses an image of the moon onto a detector. Part A What is the diameter of the moon's image? Express your answer with the appropriate units. xa x d' = -....
##### Find the equation of the line which passes through the point (-4,4), and is perpendicular to...
Find the equation of the line which passes through the point (-4,4), and is perpendicular to the line with the equation y = --x+ 4. Express your answer in slope-intercept form. Simplify your answer. 4 1...
##### Physics
You and your friend Peter are putting new shingles on the roof pitched at 25 degrees. You're siting on the very top of the roof when Peter, who is at the edge of theroof directly below you, 5.0m away, asks you for the box of nails. Rather than carry the 2.5kg box of nails down to Peter, you deci...
##### Exercise 02: Based on LINQ extension methods. [15 marks] Create an Invoice class which includes four...
Exercise 02: Based on LINQ extension methods. [15 marks] Create an Invoice class which includes four properties - a PartNumber ( type int), a PartDescription ( type string), a Quantity of item being purchased (type int) and a Pricel type decimal). Use the following sample data for Invoice class obje...
##### Listed below are the amounts of net worth (in millions of dollars) of the ten wealthiest...
Listed below are the amounts of net worth (in millions of dollars) of the ten wealthiest celebrities in a country. Construct a 99% confidence interval 247 195 175 174 161 159 154 154 154 What is the confidence interval estimate of the population mean? smillion <<5 million (Round to one decimal...
##### Let F be the vector field represented in the figure: y X 1Q0Y, 1X P(-1, 1)...
Let F be the vector field represented in the figure: y X 1Q0Y, 1X P(-1, 1) X Q3.1 3 Points 2d-Curl F(0,0) > 0 O 2d-Curl F(0,0) = 0 2d-Curl F(0,0) < 0 Q3.2 3 Points OV: F(0,0) > 0 OV: F(0,0) = 0 OV: F(0,0) < 0...
##### 2. The cornea is a water-filled connective tissue that we will treat as being flat and...
2. The cornea is a water-filled connective tissue that we will treat as being flat and of thickness h (see below). Because of the composition of the cornea, it traps positive ions, so that there are “excess" positive ions in the interior of the cornea compared with the surrounding fluid co...
##### BJ was forecasting expansion of sales in the Midwest and Western parts of the country. To...
BJ was forecasting expansion of sales in the Midwest and Western parts of the country. To accommodate the forecast growth, it was planning on investing \$2.4m over the next 18 months, of which \$2m will be spent in 2019 and the remaining amount in 2020. It was anticipated this investment would fulfill...