Files
matlab-learning/tran.m
2025-10-10 17:29:33 +08:00

3 lines
70 B
Matlab

function [rho,theta]=tran(x,y)
rho = sqrt(x^2 + y^2);
theta=atan(y/x);