MATLAB Community

MATLAB, community & more

Head Over Heels in Love

This is what happens when two logarithmic spirals love each other very much.

% Vary k from 1.5 to 3.5
k = 1.5;
t = linspace(0,k*pi,200);

r = exp(t);
x = r.*cos(t);
y = r.*sin(t);

plot(x,y,-x,y,'LineWidth',2,'Color',[1 0 0])
axis equal
title('r = e^\theta with reflection')

Happy Valentines Day!

  • print


댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.