Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone please complete the following 3 problems in MATLAB? 1) Write a MATLAB function that will compute the cross-sectional area of a sphere given
Can someone please complete the following 3 problems in MATLAB?
1) Write a MATLAB function that will compute the cross-sectional area of a sphere given its volume. The function call should be defined as: function [area] = sphere_area(volume) 2) Write a MATLAB function that will compute the "standard" air temperature (F), pressure (lb/ft2) and density (slugs/ft 3 ) given an altitude (ft) above Earth's sea level using the "Earth Atmosphere Model" available from NASA at . The function call should be defined as: function [temp, pres, dens] = standard_atmosphere(altitude) 3) Aerodynamic drag on a moving sphere can be calculated using the following equation: FD=21v2ACD where: FD Aerodynamic drag (Greek letter rho) density of the air V speed of the sphere A cross-sectional area of the sphere CD Drag coefficient (CD=0.55 for a sphere) The drag force FD will need to be modified to include the direction of the speed of the sphere using the product FD=(FDsign(v)) Where - v is the speed of the sphere - sign() is a MATLAB function that will return +1 if v is positive, 0 if v is zero and 1 if v is negative. Write a user function to compute the direction-modified, aerodynamic drag force that uses the following definition statement: function [drag] = aero_drag(dens, v, A)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started