Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING MATLAB: A. Write a function that creates a structure variable called createspacecraft. The function should take four inputs, a number called mass (in kg),

USING MATLAB:

image text in transcribedimage text in transcribedimage text in transcribed

A. Write a function that creates a structure variable called createspacecraft. The function should take four inputs, a number called mass (in kg), a number called fuel (in joules of energy) a number called orbit (in meters), and a number called engine in newtons. It should return an output structure called spacecraft containing each of those values. Please ensure that both the function name, AND the names of variables within the spacecraft structure are exactly as instructed B. In order to stay in a stationary orbit, spacecraft need to be traveling at a certain velocity. That velocity is given by the formula: Vorbitrbit +Te Where G is the gravitational constant 6.67 x 10 m'/s? kg, me is the mass of the earth, 5.98 1024 kg, re ls the radius of the earth, which is 6,370,000m, and orbit is the height of the orbit above the planet. Write a function called gravCalc that takes an orbital height as an input and returns a velocity as an output

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

Find the orbital radius that corresponds to a "year" of 150 days.

Answered: 1 week ago

Question

1. Design an effective socialization program for employees.

Answered: 1 week ago