From: Danna on 25 Jul 2010 17:22 how can I animate a figure traslation using a traslation matrix???
From: us on 25 Jul 2010 17:35 "Danna " <silver_girl(a)hotmail.com> wrote in message <i2i9ts$89m$1(a)fred.mathworks.com>... > how can I animate a figure traslation using a traslation matrix??? in many ways... show CSSM what YOU have done so far to solve YOUR particular problem... us
From: Danna on 25 Jul 2010 18:04 heres the code for my translation M=[-3,2,-1;4,-2,3;5,-4,-2;-3,2,-1]; line(M(:,1),M(:,2),M(:,3),'Color','m') RotMatrix=[0,0,0;0,-1,0; 0 0 0; 0 0 0 0]; for i = 1:64 Mm= RotMatrix*M; pause(.08) line(Mm(1,:),Mm(2,:),Mm(:,3),'-.b',Mm(1,:),Mm(2,:),Mm(:,3),'*m'), end
From: us on 25 Jul 2010 18:48 "Danna " <silver_girl(a)hotmail.com> wrote in message <i2iccj$atp$1(a)fred.mathworks.com>... > "Danna " <silver_girl(a)hotmail.com> wrote in message <i2i9ts$89m$1(a)fred.mathworks.com>... > > how can I animate a figure traslation using a traslation matrix??? > > heres my code > > M=[-3,2,-1;4,-2,3;5,-4,-2;-3,2,-1]; > line(M(:,1),M(:,2),M(:,3),'Color','m') > RotMatrix=[0,0,0;0,-1,0; 0 0 0; 0 0 0 0]; > for i = 1:64 > Mm= RotMatrix*M; > pause(.08) > line(Mm(1,:),Mm(2,:),Mm(:,3),'-.b',Mm(1,:),Mm(2,:),Mm(:,3),'*m'), > end did you look at what was told you in an earlier thread(?)... http://www.mathworks.com/matlabcentral/newsreader/view_thread/287729 us
|
Pages: 1 Prev: help with graphics/colormap/pcolor or whatever Next: axes tick |