Generate a matlab program that takes a text file of random (x,y) coordinates and
ID: 657155 • Letter: G
Question
Generate a matlab program that takes a text file of random (x,y) coordinates and shows the total number of points in each quadrant. Quadrant classifications are shown in Table 1. No points will have coordinate values of 0. All coordinates will be integers between -128 and +128.
Table 1: Quadrant classifications.
If x is . . .
and y is . . .
then quadrant is . . .
x>0
y>0
1
x<0
y>0
2
x<0
y<0
3
x>0
y<0
4
If x is . . .
and y is . . .
then quadrant is . . .
x>0
y>0
1
x<0
y>0
2
x<0
y<0
3
x>0
y<0
4