Question: MATLAB Angle AOB with arbitrary points A and B on 2D plane My Solutions > Write a function named myfunction(x1,71,x2,42) which accepts (x1, y1) and

MATLAB

MATLAB Angle AOB with arbitrary points A and B on 2D planeMy Solutions > Write a function named myfunction(x1,71,x2,42) which accepts (x1, y1)

Angle AOB with arbitrary points A and B on 2D plane My Solutions > Write a function named myfunction(x1,71,x2,42) 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 e Reset O MATLAB Documentation i function y = myFunction(x1, y1,x2, y2) 5 end 6 Code to call your function 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!