Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of the problems in this lab assignment, write a separate MATLAB m-file. The name of each m-file and function must be exactly as

image text in transcribedimage text in transcribed

For each of the problems in this lab assignment, write a separate MATLAB m-file. The name of each m-file and function must be exactly as specified in the corresponding problem statement. Submit your files by uploading to Blackboard before the due date. 1. Filename: f to c.m Write a MATLAB function that accepts a temperature in degrees Fahrenheit and returns the temperature in degrees Celsius. Your function should have the following syntax: C f to c (F) where Fis a temperature in Fahrenheit and C is a temperature in Celsius. The relationship is given by the following equation T(in C) IT(in OF) 32.01 2. Filenames: gravforce.m MAE 1090 Lab 10 2.m The gravitational force F between two bodies of masses m1 and m2 is given by the equation Gm1m2 where G is the gravitational constant (6.672 x 10 11 N m2/ kg2), m1 and m2 are the masses of the bodies in kilograms, and r is the distance between the two bodies. Write a MATLAB function to calculate the gravitational force between two bodies given their masses and the distance between them. Your function should have the following syntax: gravforce (m1, m2, r) Then, write a script to test your function by determining the force on an 800 kg satellite in orbit 38,000 km above the Earth. (The mass ofEarth is 6.98 x 1024 kg and the radius of the Earth is 6.371 x 106 m.) Note: the distance between the bodies in the gravitational force equation is measured from the center of Earth to the satellite. Hint: 9.07 x 103N is not the correct answer. Check your units

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

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions