Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. The area of a triangle is 72 the length of the base of the triangle times its height. Use Matlab to find the areas

image text in transcribed
image text in transcribed
1. The area of a triangle is 72 the length of the base of the triangle times its height. Use Matlab to find the areas of three triangles with base lengths of 2, 4, and 6 m, respectively, and all with heights of 12 m. Specifically, define a scalar variable called height and assign it the value of 12. Then assign a row vector called baseLength and assign the respective base lengths to it. Use both height and baseLength to compute the areas, which should also be assigned to a row vector variable called area. 2. The general equation for the distance that a freely falling body has traveled (neglecting air friction) is d = 12 gt2. Assume g = 9.8 m/s2. Use Matlab to generate and display a 2-D array containing the values of time and distance traveled in columns 1 and 2, respectively, for values of time from 0 to 20 seconds. 3. The specific volume (m3/kg) of an ideal RT gas can be determined as U = P. where T is the temperature (K), P is the pressure (Pa), and R is the specific gas constant (kJ kg-1K-1). Use Matlab to find and display the specific volume of air for 10 evenly-spaced pressures from 100 kPa to 1000 kPa, for a temperature of 200 K. The value of R for air is 0.2870 kJ kg-1K-1. Both temperature and specific volume should be represented with arrays

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

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago