Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 0 pts ) Prompts the user to enter a depth in meters and assigns the value to a variable depth using the MATLAB input

10 pts) Prompts the user to enter a depth in meters and assigns the value to a
variable depth using the MATLAB input function.
2.(10 pts) Calculates the speed of a tsunami in meters per second according to the
formula
where and =2100 is the depth of the ocean in meters and assigns the
result to the variable velTsunami.
3.(20 points) Create an external function MpsToKmph.m for m/s to km/h conversion,
that takes an input argument in m/s and outputs a value in km/h.
4.(a)(10 pts) Calculate the wave speed of the tsunami in km/h using your external
function MpsToKmph.m, and print the speed in km/h using the disp function.
(b)(10 pts) Calculate how far, in km, the wave will travel in 8 hours, 12 hours, 24 hours.

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions