From: Danna on 25 Jul 2010 14:24 p=[-3,2,-1;4,-2,3;5,-4,-2;-3,2,-1]; rho = pi/8; RotMatrix=[cos(rho),-sin(rho),0;sin(rho),cos(rho),0;0,0,1]; for i = 1:64 pp=p*RotMatrix; pause(.08) plot(pp(:,1),pp(:,2)) hold on grid on end
From: us on 25 Jul 2010 15:21 "Danna " <silver_girl(a)hotmail.com> wrote in message <i2hvg3$n9h$1(a)fred.mathworks.com>... > p=[-3,2,-1;4,-2,3;5,-4,-2;-3,2,-1]; > rho = pi/8; > RotMatrix=[cos(rho),-sin(rho),0;sin(rho),cos(rho),0;0,0,1]; > for i = 1:64 > pp=p*RotMatrix; > pause(.08) > plot(pp(:,1),pp(:,2)) > hold on > grid on > end do NOT double post... us
|
Pages: 1 Prev: R2010b Prerelease is Live Next: What is wrong on this animation code? |