- /
-
Cute
on 27 Oct 2021
- 2
- 22
- 0
- 0
- 264
x=0:.1:1.1;
x2=x;
y=x.^2;
y2=1./x;
for A=0:45:45*20
O=[cosd(A), -sind(A); sind(A), cosd(A)];
for i=1:length(x)
M=[y(i);x(i)];
T=O*M;
x(i)=T(1);
y(i)=T(2);
M=[y2(i);x2(i)];
T=O*M;
x2(i)=T(1);
y2(i)=T(2);
plot(x(1:i),y(1:i),'LineWidth',2);
axis off
hold on
plot(x2(1:i),y2(1:i),'LineWidth',2);
end
end