Here is my code, I wanna to draw a cosine animatedline in polar coordinates rather than cartesian coordinates, what can I do? XD
N = 10000;phi = linspace(0, 2 * pi, N);u1 = 3;figure grid onh = animatedline;M = 1e3;varphic = linspace(0, 2 * pi, M);for i = 1 : M z = cos(u1 .* phi + varphic(1, i)); clearpoints(h); addpoints(h, phi, z); drawnow updateend
Best Answer