Question
Program in matlab Earthquakes are categorized based on the moment magnitude scale (similar to the Richter magnitude scale) and the Mercalli intensity scale. The moment
Program in matlab
Earthquakes are categorized based on the moment magnitude scale (similar to the Richter magnitude scale) and the Mercalli intensity scale. The moment magnitude scale quantifies the energy released by an earthquake, and the Mercalli intensity scale measures the effects of an earthquake on a scale from I - XII. In many cases, there is a correlation between the magnitude and the intensity of an earthquake. The following table shows the probable Mercalli intensity for various moment magnitudes:
Moment magnitude Mercalli intensity
<2.0 1 2.0-2.9 1-2 3.0-3.9 2-4 4.0-4.9 4-6 5.0-5.9 6-8 6.0-6.9 7-10 >7.0 >8
< Write a script that will read in the year of occurrence, the moment magnitude, and the location of an earthquake from the given text file earthquake_data.txt and then print this information in the command window using fprintf along with the probable Mercalli intensity range
January 7, 2016 4.8 Fairview, OK February 7, 1812 7.5 New Madrid, MO February 10, 2016 2.8 Avenal, CA August 23, 2011 5.8 Mineral, VA
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started