Write and test a function that computes the time

Assignment Help MATLAB Programming
Reference no: EM131285595

Question 1. For several values of x, use MATLAB to con rm that sinh x = (ex - e-x)/2.

Question 2. For several values of x, use MATLAB to con rm that cosh-1x = In (x + √(x2 - 1)

Question 3. The capacitance of two parallel conductors of length L and radius r, separated by a distance d in air, is given by

C= Π∈L/ln[(d - r)/r]

where ∈ is the permittivity of air (∈ = 8.854 X 10-12 F/m).

Write a script le that accepts user input for d, L, and r and computes and displays C. Test the le with the values L = 1 m, r = 0.001 m, and d = 0.004 m.

Question 4. The output of the MATLAB atan2 function is in radians. Write a func-tion called atan2d that produces an output in degrees.
9. Write a function that accepts temperature in degrees Fahrenheit (°F) and computes the corresponding value in degrees Celsius (°C). The relation between the two is

T°C = 5/9 (T°F - 32)

Be sure to test your function.

Question 5. An object thrown vertically with a speed vo reaches a height h at time t, where

h = vot - 1/2gt2

Write and test a function that computes the time t required to reach a speci ed height h, for a given value of vo. The function's inputs should be h, vo, and g. Test your function for the case where h = 100 m, vo = 50 m/s, and g = 9.81 m/s2. Interpret both answers.

Question 6. A water tank consists of a cylindrical part of radius r and height h and a hemispherical top. The tank is to be constructed to hold 600 m3 when lied. The surface area of the cylindrical part is 2Πrh, and its volume is Πr2h. The surface area of the hemispherical top is given by 2Πrh, and its volume is given by Πr2h. The cost to construct the cylindrical part of the tank is $400 per square meter of surface area; the hemispherical part costs $600 per square meter. Use the fminbnd function to compute the radius that results in the least cost. Compute the corresponding height h.

Question 7. A fence around a eld is shaped as shown in Figure P12. It consists of a rectangle of length L and width W, and a right triangle that is symmetrical about the central horizontal axis of the rectangle. Suppose the width W is known (in meters) and the enclosed area A is known (in square meters). Write a user-de ned function le with W and A as inputs. The outputs are the length L required so that the enclosed area is A and the total length of fence required. Test your function for the values W = 6 m and A = 80 m2.

1916_Figure1.jpg

Question 8. A fenced enclosure consists of a rectangle of length L and width 2R and a semicircle of radius R, as shown in Figure P13. The enclosure is to be built to have an area A of 2000 ft2. The cost of the fence is $50 per foot for the curved portion and $40 per foot for the straight sides. Use the fminbnd function to determine with a resolution of 0.01 ft the values of R and L required to minimize the total cost of the fence. Also compute the minimum cost.

1281_Figure2.jpg

Question 9. Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reser-voir as a function of time

V(t) = 109 + 108(1 - e-t/100) - rt

where V is the water volume in liters, t is time in days, and r is the town's consumption rate in liters per day. Write two user-de ned functions. The first function should de ne the function V(t) for use with the f zero func-tion. The second function should use f zero to compute how long it will take for the water volume to decrease to x percent of its initial value of 109L.

The inputs to the second function should be x and r. Test your functions for the case where x = 50 percent and r = 107 L/day.

2057_Figure.jpg

Reference no: EM131285595

Questions Cloud

Is it ethical for churches and religious organizations : What are some ways that these organizations market themselves that are similar to and different from the marketing by for-profit businesses?
Most people in economy are employed by service industries : Why do you think this has occurred? In what ways is this trend a good and/or a bad thing for a country? Do you think this trend will continue?
Find frequency f of small oscillations about this position : The 8-kg uniform plate supported by the pin at O is in equilibrium in the position shown. Find the frequency f of small oscillations about this position.
Provide a comprehensive definition for renaissance : Provide a comprehensive definition for "Renaissance." Define "readymade" and provide an example that best exemplifies this type of art. How does Analytical Cubism reflect the way we actually see?
Write and test a function that computes the time : Write a script le that accepts user input for d, L, and r and computes and displays C. Test the le with the values L = 1 m, r = 0.001 m, and d = 0.004 m.
Charts the commonalities between the given historic periods : Write an essay that charts the commonalities between these historic periods. In short, you should link the cultures of the 16th and 18th centuries by highlighting shared ideas and traditions in art that appeared during the Renaissance and reappea..
Derive the differential equation of motion of the disk : Assuming that the disk does not slip on the horizontal surface,
Identify the audience or population that you seek : Select a health issue of interest to you.Identify the audience or population that you seek to educate about this issue.Search the Internet to find credible sites containing information about your selected topic.
How are favorite brands faring on their index : Based on recent results, how are your favorite brands faring on their index? Do you agree with the results provided about your favorites?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Function that takes as input parameters

Define a function that takes as input parameters a function handle f, start and end values a and b, and a number of steps n. The function should compute and return the x and y values of the maximum of the function over the range a to b.

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

  Calculate the average value for each of the loads

Performs curve-fits of all the data - Determines what type of loading has been applied based on which curve-fit is the best. 6.Demonstrates that the chosen curve-fit is the best both graphically and numerically.

  Solve a linear system of equations

Solves a linear system of equations using naïve Gaussian elimination - You can use the ‘backslash' Matlab operator for solving the systems of equations.

  Write compile and run a hello program

With these mechanical details mastered, everything else is comparatively easy - Write, compile and run a hello program.

  Parse and load data files and deal with missing data

To write code to- parse and load data files and deal with missing data,- implement a more complex program involving multiple function calls. - output nicely formatted results and figures summarizing your analyses.

  What is the uniform background lifetime

You should find that the calculated lifetime is much more spatially uniform than the noisy intensity data, with a single well-defined region of spatial contrast. What is the uniform background lifetime, in nanoseconds, and what is the lifetime in ..

  Matlab code to detect number of vehicles in a video clip

Machine Vision & Imaging Techniques in Mechanical Engineering - Write a MATLAB code to detect the number of vehicles in a video clip.

  Ilab overview

you will develop a policy statement and the processes and procedures that can be used to drive the design, implementation, and maintenance of a wireless network in a SOHO (small office, home office) setting.

  Plot an outcome of the proportion of successes

Simulate 2000 coin flip experiments with a biased coin with "success" probability (chance of 1) p = 1=5. Plot an outcome of the proportion of successes with respect to the number of coin flips. Supply your code.

  Applications of multirate digital signal processing

ELEC 0316-SPRING - Discuss the applications of Multirate Digital Signal processing or Explain the need of Multirate Signal Processing with suitable Example.

  What is the purpose of the matlas command window

What is the purpose of the MATLAS Command Window. The Edit Window? The Figure Window. List the different ways that you get help in MATLAB. What is a workspace. How can you determine what is stored in a MATLAB workspace

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