%% Cartesian to Polar Coordinates
% Convert the Cartesian coordinates defined by corresponding entries in matrices x and y to polar coordinates theta and rho.

x = [5 3.5355 0 -10]

%

y = [0 3.5355 10 0]

%

[theta,rho] = cart2pol(x,y)

% Copyright 2012 The MathWorks, Inc.