To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
The Richter scale is a measure of the intensity of an earthquake. The energy E(in gigajoules) released by an earthquake is related to the magnitude M on the Richter scale as follows.
program the formula for E in a script file.
Use the input function to prompt the use to enter a value of M. The prompt should say "Please enter a Value M on the Richter scale, then press enter". use the disp function and the num2str function to display the numerical value of the energy E with the text "The energy released is:", followed by the value of E, followed by the text "Gigajoules."
So far I have
M=input('Please Enter a Value of M on the Richter scale, then press enter') E=(10^(-4.6))*(10^(1.5*M))
How do I do this problem from this point?
No products are associated with this question.