{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ps2_Sp06 - UNIVERSITY OF CALIFORNIA DAVIS Department of...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering ENG 6, Engineering Problem Solving Spring 2006 Problem Set #2 Due Saturday, April 15 at 5:00 pm (Late submissions will be accepted until Monday, Apr. 17 at 5 pm, for a maximum of half credit.) For the following problems you are to create the specified script files and submit them via the MyUCDavis web portal, as described in the instructions below. Your script files should contain comments so that it is easy to determine what has been defined and what has been computed. The displayed output should clearly identify the variable whose value is displayed and specify its units . Variable names should be chosen to correspond to the mathematical variables used in the problem definitions as given below. Also make sure to use the clear and clc commands at the beginning of each script IMPORTANT NOTE: It is okay to work together on the homework assignments, but in the end you must write up and submit your own version of the script separately from anyone else. That is, you may not copy and submit someone else’s script or portion thereof, even if you helped work on it. Problem 2.1 The magnitude M of an earthquake on the Richter scale is given by 0 10 log 3 2 E E M = , where E is the energy released by the earthquake and E 0 = 10 4.4 joules is a constant (the energy of a small reference earthquake; note that the exponent here is 4.4, not 44). Use Matlab to do the following. In each case use the disp command (set to format short) to display the results. (a) Calculate and display the amount of energy (in joules) released in a magnitude 6 earthquake, a magnitude 7 earthquake, and a magnitude 8 earthquake earthquake. (b) The Hiroshima atomic bomb had an explosive yield of about 15,000 tons of TNT, which is about 6.3x10 13 joules. It has also been estimated that the collapse of the World Trade Center towers generated about 6.8x10 11 joules. Calculate and display the amount of energy released in earthquakes of magnitude 6, 7, and 8, but this time do it in “Hiroshima atomic bomb” units and “WTC collapse” units. (That is, a magnitude 6
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern