# MATLAB: Direction between points from [0,360]

directionvectorsvelocity

I have 5 points which has (x,y) position and want to calculate the direction from one point to the other. I used atan2d but the output is confusing. Is there any way to bypass the different signs for counterclockwise and clockwise and get the output to be between [0,360] from clockwise only?
Thanks

mod(atan2d(y,x),360)
mod(360 - atan2d(y,x),360)
mod(360 - atan2d(-2,1),360)ans =       63.435