clear; clc; z = 4; modo = "grados"; %modo = "radianes"; [r,theta] = rect_to_polar(z,modo); printf("%10s = %f CiS %f\n",num2str(z),r,theta); z = 1+1i; [r,theta] = rect_to_polar(z,modo); printf("%10s = %f CiS %f\n",num2str(z),r,theta); z = 4i; [r,theta] = rect_to_polar(z,modo); printf("%10s = %f CiS %f\n",num2str(z),r,theta); z = -1 +1i; [r,theta] = rect_to_polar(z,modo); printf("%10s = %f CiS %f\n",num2str(z),r,theta); z = -4; [r,theta] = rect_to_polar(z,modo); printf("%10s = %f CiS %f\n",num2str(z),r,theta); z = -1-1i; [r,theta] = rect_to_polar(z,modo); printf("%10s = %f CiS %f\n",num2str(z),r,theta); z = -4i; [r,theta] = rect_to_polar(z,modo); printf("%10s = %f CiS %f\n",num2str(z),r,theta); z = 1-1i; [r,theta] = rect_to_polar(z,modo); printf("%10s = %f CiS %f\n",num2str(z),r,theta);