Thanks so far on your answers. I'm still new to matlab and its been a while since coding even on c++ so I'm still learning tons with the logic and syntax along with the useful features of matlab.
unfortuantly this particular assignment requires me to use if, elseif statements to solve. The exact assignment is to use the function "atan(y/x)" in combination with if statements to convert from (x,y) coordinates to polar coordinates. So my if statements should appropriately add and subtract pi to accurately output if in quadrant 2 or 3.
