The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 305 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Hey there I was wondering if you could help me, I am having issues, it is in regards to matlab
EXAM 3 – CS 151L Summer 2017 Due: Friday, July 28, 2017 at 5:00 PM (all M-files must be uploaded to Learn by this time) NOTE: For this exam, use the naming convention as given: Problem 1 should be called csexam31.m; Problem 2 called csexam32.m; Problem 3 called csexam33.m; Problem 4 called csexam34.m; Problem 5 called csexam35.m; Problem 6 called csexam36.m; and, Problem 7 called csexam37.m. All programs must be original work – no working together on problems or getting help other than clarifying problem statement. 1. Define h and k constants, h = 0.7 and k = 8.85, and x, y and z vectors, x = 1 through 5 (incremented by 1), y = 2.1 through 1.7 (decremented by 0.1) and z = 2 through 4 (incremented by 0.5). Then, calculate G using the following equation: x y z hy h z e x y hx ky G 2. A model for exponential growth of a quantity is given by: 0 0 ln 1 ( ) A A t t k A t A e kt where A(t) and A0 are the quantity at time t and time 0, respectively, and k is a constant that is unique to the specific application. Write a user-defined function that uses this model to predict the quantity A(t) at time t from knowing A0 and A(t1) at some time t1. For function name and arguments, use At = csexam32(A0, At1, t1, t), where the output argument At corresponds to A(t) and the input arguments are A0, At1, t1 and t. Your function should verify that the t input value is a single value (not a matrix) before continuing to do the calculations. You do not need to submit a test program for this function. (Hint: first solve for k, then solve for At) (13 points) 3. The Taylor polynomial is a powerful mathematical tool that helps approximate the value of various functions within a reasonable range of approximation. For example, it helps in the calculation of an irrational number like e (the exponential function). The Taylor polynomial of degree n for for any x is given by: ! ... 1! 2! 3! 4! 1 2 3 4 n x x x x x e n x Using n = 10, write a MATLAB program to calculate the value of (x = 2 in the formula). Print out the final answer as: e^2 is equal to XXX.XX. NOTE: The estimation of this function is a summation of the form: (because there is a repetitive nature to this summation, a loop would be one possible solution). EXAM 3 – CS 151L Summer 2017 Due: Friday, July 28, 2017 at 5:00 PM (all M-files must be uploaded to Learn by this time) 4. A thermocouple is a sensor used for measuring temperature. It is made by joining two wires made from dissimilar materials. To measure temperature, two thermocouples are connected in a circuit. One thermocouple is placed in a medium with known constant temperature (e.g. ice water), and the other is placed where the temperature is to be measured. A voltage v is generated when the two temperatures are not the same. The voltage v can be modeled as a function temperature by an expression of the form: where is a constant that depends on the two materials that are used for the thermocouple. Using the following data and linear regression, determine the value of (NOTE that this variable is the slope of the equation). Also, plot the original data with the determined linear function and find the approximate value of v when T = 240.56. You can find the approximate value two different ways but the results will be slightly different (you will only notice it if you go to format long). T (Celsius) 25 100 200 300 400 500 600 700 v (mV) 1.11 4.03 8.16 12.62 16.54 20.90 23.7 29.15 5. Given a tank of Height H that has a center that is cylindrical with radius r and has half spherical caps on each end (also of radius r), find the volume of the liquid in the tank. Your program will prompt the user to enter the Height and radius of the tank and the height (h) of the liquid. Use the following criteria to find the volume: If the height of the liquid is less than the radius, v h 3r h 3 1 2 . If the height of the liquid is greater than the radius but less than the Height of the tank minus the radius, v r r h r 3 2 3 2 . If the height of the liquid is greater than the Height of the tank minus the radius, v r r H r H h 3r H h 3 1 2 3 4 3 2 2 . An error will occur if the height of the liquid is negative or greater than the Height of the tank. NOTE: assume h, r and H are all scalar values. 6. Write a function that has two input arguments and two output arguments. This function will accept both the height and radius and calculate the area and volume of a cylinder. To do this, you will need to use the following equations (r and h could be matrices and assume to be the same size): v r h 2 2 a 2rh 2r EXAM 3 – CS 151L Summer 2017 Due: Friday, July 28, 2017 at 5:00 PM (all M-files must be uploaded to Learn by this time) 7. Create a program that solves the following system of linear equations. 4 2 2 0 5 2 3 5 4 2 2 6 3 2 10 x w y z w z x y y x w z x w y Solve the system using either the backslash operator, the inverse command or operator, or the rref() function AND using the symbolic toolkit. Your answer needs to be printed out using fprintf commands. (13 points) Make sure that your programs are properly named so your work can be checked correctly!
Attachments:
----------- ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly