摘要:
CORDIC算法实现极坐标(polar)到直角坐标系(Cartesian)的变换。 1: function [horizonal,vertical]=polar2car(mag, pha); 2: x =mag; 3: y =0; 4: z=pha; 5: d=0; 6: i=0; 7: k = 0.6073; %K 增益 8: x = k*x; 9: while i=c d = 1; 13: else d = -1; 14: end 15: x =xNew-y*d*(2^(-i)); 16: ... 阅读全文