Head Over Heels in Love
https://blogs.mathworks.com/community/2020/02/14/head-over-heels-in-love/
https://blogs.mathworks.com/community/2020/02/14/head-over-heels-in-love/
MATLAB Community
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
set(gcf…
% 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
set(gcf…