How did you create x so that the plot looked good

Assignment Help Software Engineering
Reference no: EM131103675

1. Create a vector of the even whole numbers between 31 and 75.

2. Let x = [2 5 1 6].

a. Add 16 to each element
b. Add 3 to just the odd-index elements
c. Compute the square root of each element
d. Compute the square of each element 

3. Let x = [3 2 6 8]' 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 each 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".
e. Add up the elements in z and assign the result to a variable called "w".
f. Compute x'*y - w and interpret the result

4. Evaluate the following MATLAB expressions by hand and use MATLAB to check the answers

a. 2 / 2 * 3
b. 6 - 2 / 5 + 7 ^ 2 - 1
c. 10 / 2 \ 5 - 3 + 2 * 4
d. 3 ^ 2 / 4
e. 3 ^ 2 ^ 2
f. 2 + round(6 / 9 + 3 * 2) / 2 - 3
g. 2 + floor(6 / 9 + 3 * 2) / 2 - 3
h. 2 + ceil(6 / 9 + 3 * 2) / 2 - 3

5. Create a vector x with the elements ...

a. 2, 4, 6, 8, ...
b. 10, 8, 6, 4, 2, 0, -2, -4
c. 1, 1/2, 1/3, 1/4, 1/5, ...
d. 0, 1/2, 2/3, 3/4, 4/5, ... 

6. Create a vector x with the elements,

xn = (-1)n+1/(2n-1) Add up the elements of the version of this vector that has 100 elements. 

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 sides (try to do this for a vector of side-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 c2 = a2 + b2 - 2(a)(b)cos(t) Where t is the included angle between the given sides. 

8. Given a vector, t, of length n, write down the MATLAB expressions that will correctly compute the following:

a. ln(2 + t + t2)
b. et(1 + cos(3t))
c. cos2(t) + sin2(t)
d. tan-1(1) (this is the inverse tangent function)
e. cot(t)
f. sec2(t) + cot(t) - 1 

Test that your solution works for t = 1:0.2:2  

9. Plot the functions x, x3, ex and ex2 over the interval 0 < x < 4 ...

a. on rectangular paper
b. on semilog paper (logarithm on the y-axis)
c. on log-log paper Be sure to use an appropriate mesh of x values to get a smooth set of curves. 

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. How did you create x so that the plot looked good?

11. In polar coordinates (r,t), the equation of an ellipse with one of its foci at the origin is r(t) = a(1 - e2)/(1 - (e)cos(t))

Where a is the size of the semi-major axis (along the x-axis) and e is the eccentricity. Plot ellipses using this formula, ensuring that the curves are smooth by selecting an appropriate number of points in the angular (t) coordinate. Use the command axis equal to set the proper axis ratio to see the ellipses.

12. Plot the expression (determined in modeling the growth of the US Population P(t) = 197,273,000/(1 + e-0.0313(t - 1913.25))

Where t is the date, in years AD, using t = 1790 to 2000. What population is predicted in the year 2020? 

Reference no: EM131103675

Questions Cloud

Explain why high import tariffs on imported goods : Explain why high import tariffs on imported goods do not help lower domestic unemployment in the long run. There are two separate answers and they are both in the book. Reason one: Reason two:
What was the money supply : According to the Fed, in August 2008 the money multiplier was 1.31, reserves were $44billion, and currency in circulation was 1.31. What was the money supply?
Where does the incidence of the tax lie : Assume that the government places a 50 percent tax on widgets. Neither the demand for widgets or supply of widgets is perfectly elastic or inelastic. Draw a graph showing how the tax will affect the market. Where does the incidence of the tax lie? Ex..
People without prior knowledge of game theory : Write a paper that uses game theory to to set up a game designed to help a consumer decide whether to buy life insurance or not. To keep the game relatively simple, assume the life insurance being considered is term life, i.e. insurance without an ac..
How did you create x so that the plot looked good : How did you create x so that the plot looked good. Where a is the size of the semi-major axis (along the x-axis) and e is the eccentricity. Plot ellipses using this formula, ensuring that the curves are smooth by selecting an appropriate number of po..
Example of permanent supply shock : An example of a permanent supply shock is:
Derive the discrete heat equation in one-dimension : Math 054 Partial Differential Equations - HW Assignment 1. Derive the discrete heat equation in one-dimension. Show all work. Find δyδyu(x, y, z, t)
Property rights security in russian deprivatization : Property Rights Security in Russian Deprivatization. What impact will the prospect of deprivatization have on investment by managers of privatized firms? What effect will deprivatization have on foreign investment in Russia? Who gains from deprivatiz..
Closing over under applied overhead into cost of goods sold : At the end of the year, overhead applied was $3,272,961. Actual overhead was $3,742,718. Closing over/under applied overhead into cost of goods sold would cause net income to increase/decrease by?

Reviews

Write a Review

Software Engineering Questions & Answers

  Components affect requirements-design-implementation phases

Must RMO consider using purchased components within new CSS? If so, When, must it begin looking for components? How will the decision to use components affect requirements, design and implementation phases?

  Identify two types of connection trap

A publishing company produces scientific books on various subjects. The books are written by authors who specialize in one particular subject. The company employs editors who, not necessarily being specialists in a particular area, each take sole ..

  Attacking small and medium businesses

Evaluate the recent trend toward attacking small and medium businesses and identify the benefits that these types of businesses have which attract attackers.

  Construct test case for the use case scenario

Draw the graph (Do not use a generation tool. Draw it yourself and scan in or use power point tool or similar one) and does the given set of test paths satisfy Edge-Pair Coverage? If not, identify what edge(s) are missing

  Use e-r approach to model operations of local library

Use the E-R approach to model the operations of your local community library. The library has books, CDs, tapes, and so forth, which are lent to library patrons.

  Analyze the strengths and weaknesses of both virtualization

Analyze the strengths and weaknesses of both virtualization and cloud computing in providing secure and trusted systems. In what ways do the experts foresee the use of each of these technologies evolving in the future.

  What does a curved message call line do

Describe sequence diagrams. Include in your discussion how to read them. What does a curved message call line do

  Write summary report that provides a comparative assessment

After you have compiled information about each product, write a summary report that provides a comparative assessment of the three products.

  Es attempt to create a level of lsquointimacy between the

es attempt to create a level of lsquointimacy between the company and its main suppliers and customers. explain what

  Key to managing change in projects

What do you think is the key to managing change in projects? Why do you think this is the key?

  Identify two new trends in software engineering

Describe two methods of software engineering and identify situations where these methods should be applied. Identify two new trends in software engineering and explain how they would affect you as a software engineer

  There methodologies to follow in regards to ux

Question 1: What is user experience? (use 3 different sources)  Question 2: In regards to SAP, what are they doing to improve their user experience?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd