% polar2xyScript
% Convert polar coordinates (r,theta) to Cartesian coordinates (x,y).  
% theta is in degrees.

r= input('Enter radius: ');
theta= input('Enter angle in degrees: ');

rads= theta*pi/180;  % radians
x= r*cos(rads);
y= r*sin(rads);

fprintf('x: %f\n', x)
fprintf('y: %f\n', y)
