function [x,y] = xycoord(r,phi)
% returns euclidian coordinates x and y  with inputs of
% polar coordinates r, phi
x = r .* cos(phi);
y = r .* sin(phi);
