Question: Question 4 only in Matlab pls Question 4 is based on question3 m 3. Consider a triangle with vertices at (0,0), (1,0), and (0,1). Write
m 3. Consider a triangle with vertices at (0,0), (1,0), and (0,1). Write a function with header [S] - myInsideTriangle (x,y) where sis the string 'Outside/if the point (x,y) s outside of the triangle, border if the point is exactly on the border of the triangle, and inside' if the point is on the inside of the triangle. Test Cases: EDU>> S-myInsideTriangle (.5, .5) border EDU>> S myInsideTriangle (.25,.25) inside EDU> S myInsideTriangle (5, 5) outside
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
