Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Angle AOB with arbitrary points A and B on 2D plane My Solutions Write a function named myfunction(x1,71,x2,y2) which accepts (x1, y1) and (x2,y2) as
Angle AOB with arbitrary points A and B on 2D plane My Solutions Write a function named myfunction(x1,71,x2,y2) which accepts (x1, y1) and (x2,y2) as coordinates of two points A and B on the plane and returns the angle-AOB in DEGREE You can use any formulas or methods you like (google, math book, etc). Can check your codes with some special case for which you know the answer. Hint: somewhere you will need arc cosine in degree, acosd(), check it out on MATLAB first Function Save C Reset DI MATLAB Documentation 1 function y = myFunction(x1, y1,x2,y2) 3 4 5 end 6 Code to call your function C Reset 1 % this is a known case, should be 135 degree? Also try other known cases before you submit 2 myFunction(1,0,-1,1)
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