Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In MATLAB only. Please help full points will be given! Thank you :) using the function: function v=volSphere(radius) v = 4/3*pi*(radius^3); end Use the following

In MATLAB only. Please help full points will be given! Thank you :)

using the function: function v=volSphere(radius) v = 4/3*pi*(radius^3); end Use the following lines of code: Crust = 35; Mantle = 2850; Core = 3486; Using appropriate radii calculated and stored for each later, use the function above to calculate volumns. Use the layer thickness to calculate the volumes of each layer (should be 3 in all), and total earth's volume. Store in appropriate values in variables.

Once calculated, (in km^3), find percentage of Earth's total volume each layer occupies and store them in appropriate variables such as pctVolCrust, pctVolMantle, etc. Script should look similar to this:

Volume of Core: x.xxe+xx (units) Volume of Mantle: x.xxe+xx (units) Volume of Crust: x.xxe+xx (units) Core: xx.x% Mantle: xx.x% Crust: xx.x%

Volumes should be printed in units of km^3 and in scientific notation with two decimal places. Volume percentage must be labeled with a percent sign and printed in floating point notation with one decimal place of precision. Lastly, have the script make a pie chart using the command "pie", of total % columes of each layer. Use colormap called "summer", and explode out each layer so it is easy to see. Add text label for each slice using "text"

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

Step: 3

blur-text-image

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

Learn Mysql The Easy Way A Beginner Friendly Guide

Authors: Kiet Huynh

1st Edition

B0CNY7143T, 979-8869761545

More Books

Students also viewed these Databases questions

Question

Which helping behaviors do I want to improve the most?

Answered: 1 week ago

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago