Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

3-36. A letter with a final request to settle a delinquent debt?

Answered: 1 week ago

Question

Queues can help to equitably reduce moral hazard.

Answered: 1 week ago