Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

please write matlab code for the following as if youd put it into the script.
thank you so much
image text in transcribed
image text in transcribed
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

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

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions

Question

Please use the list of accounts I have provided below

Answered: 1 week ago