Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solve using MatLab 1. The area of a triangle is 1/2 the length of the base of the triangle times its height. Use Matlab to
Solve using MatLab
1. The area of a triangle is 1/2 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 6m, respectively, and all with heights of 12m. 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=1/2gt2. Assume g=9.8m/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 gas can be determined as v=PRT, where T is the temperature ( K),P is the pressure ( Pa), and R is the specific gas constant (kJkg1K1). Use Matlab to find and display the specific volume of air for 10 evenly-spaced pressures from 100 kPa to 1000kPa, for a temperature of 200K. The value of R for air is 0.2870kJkg1K1. Both pressure and specific volume should be represented with arrays 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