background image

Bartosz Zawadzki 

Nr indeksu: 201066 

 

Kod Matlab: 

x1=[1;0] 
alfa=pi/8 
a=0.95 
 
xi=x1 
hold on 
for i=1:50 
xi=[cos(alfa), -sin(alfa); sin(alfa), cos(alfa)]*xi 
xi=a*xi 
if i<6 
    disp(xi) 
end 
plot (xi(1), xi(2), '*r') 
end 
hold off 

 

 

Pierwsze 5 punktów: 

Pkt nr 1 : x=0.9239 

y=0.3827 

Pkt nr 2 : x=0.6718 

y=0.6718 

Pkt nr 3 : x=0.3454 

y=0.8338 

Pkt nr 4 : x=0.0000 

y=0.8574 

Pkt nr 5 : x=-0.3117 

y=0.7525 

 

 

 

Wykres: