# Problems with finding angles with different signs

1. Nov 23, 2011

### roldy

I need to find all angles that are greater than 90. To be more precise I need to find the entries that are to the right of the blue line and to the right of the red line. I tried using the the find command in MATLAB to find certain indices but realized that the angle signs change. The blue and red lines are points on the curve where the angle is zero. The point of zero angle is not known. The reason for this is that I need this to work for a general case, meaning that I want to factor in an attack angle. This means that the green line will not be horizontal. I've included a picture of the shape of the vehicle and a close up of the top and bottom of the curve. I have also included an excel file with the angles as well as the .m file for the slope and angle calculation. Also, the green line is located at x=0.

all files are zipped here:
http://www.mediafire.com/?d5tcj7dceq54fwi [Broken]

right of blue line: negative
left of blue line to above green line: positive
bottom of green line to left of red line: negative
right of red line: positive

should I just add 90 degrees to the angles so that the angle the green line makes with the tangent of the curve is 90. This has to be for a general attack angle also. Meaning that the green line is not horizontal.

#### Attached Files:

File size:
30.5 KB
Views:
49
• ###### angles.m
File size:
5.6 KB
Views:
25
Last edited by a moderator: May 5, 2017

Can you offer guidance or do you also need help?
Draft saved Draft deleted

Similar Threads for Problems finding angles
MATLAB Does anyone had this plotting problem with MATLAB?
Mathematica Solve Perturbation problem with mathematica