Question: please write matlab code for the following as if youd put it into the script. thank you so much 5. Write a local function that

5. Write a local function that converts speed in units of mph to mps. Use the function name and input parameter shown below, mps = mphToMps(mph) The input parameter is speed in miles per hour. The output parameter is in meters per second. Display the converted value where mph is 55 mi/hr. 6. Display the help command for mph ToMps. 7. Write a local function that calculates the area of a triangle by using Herons formula. Search google for Herons formula and use that formula for calculating the area. Use the function name and input parameters shown below, Area = triangle(a,b,c) Display the area of the triangle with side lengths where a = 3,6 = 8,c = 10. 8. Display the help command for triangle. 9. Write a local user function with the function name and input parameters shown below, Area = tri Area(A, B, C) The area of triangle ABC can be calculates by, Area = 5 |AB X AC|| Area is the || magnitude | of the cross product of AB X AC AB is the vector from point A to point B AC is the vector from point A to point C The input parameters, A, B, and C, are vectors, with the coords of the corresponding vertex. Display the are a the triangle for the following input parameters, A-[-1.5, -4.2, -3] B-[-5.1, 6.3, 2] C=[12.1, 0, -0.5] 10. Display the help command for triArea
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
