15.04.2013 Views

Transformações Lineares de Rn em Rm - deetc

Transformações Lineares de Rn em Rm - deetc

Transformações Lineares de Rn em Rm - deetc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

T R A N S F O R M A Ç Õ E S L I N E A R E S D E R N E M R M A L G E B R A – T U R M A L R 1 1 D<br />

TRANSFORMAÇÕES LINEARES EM 3D<br />

6. Vamos começar por ver alguns procedimentos gráficos básicos.<br />

Representação do ponto ( x , y,<br />

z)<br />

= ( 2,<br />

0,<br />

2)<br />

figure(1);clf<br />

x = 2;<br />

y = 0;<br />

z = 2;<br />

plot3(x,y,z,'k*')<br />

axis([0 2 0 2 0 2]); grid on; view(126,16)<br />

Representação do conjunto <strong>de</strong> pontos ( x 1 , y1,<br />

z1)<br />

= ( 2,<br />

0,<br />

0)<br />

,<br />

( x 1 , y1,<br />

z1)<br />

= ( 2,<br />

0,<br />

2)<br />

, ( x 1 , y1,<br />

z1)<br />

= ( 0,<br />

2,<br />

0)<br />

e ( x 1 , y1,<br />

z1)<br />

= ( 0,<br />

2,<br />

2)<br />

.<br />

figure(2);clf<br />

x1=[2 0 0]'; x2=[2 0 2]'; x3=[0 2 0]'; x4=[0 2 2]';<br />

X=[x1 x2 x3 x4]<br />

plot3(X(1,:),X(2,:),X(3,:),'*k');<br />

axis([ 0 4 0 4 0 4]); axis square; grid on;<br />

view(135,30)<br />

Representação <strong>de</strong> uma esfera <strong>de</strong> raio unitário centrada na orig<strong>em</strong>.<br />

figure(3);clf; hold on<br />

[x,y,z] = sphere(20);<br />

h=surf(x,y,z,...<br />

'FaceColor','c',...<br />

'EdgeColor','k');<br />

axis([-1 1 -1 1 -1 1]); grid on; axis square<br />

view(112,27);<br />

ou<br />

figure(4);clf; hold on<br />

[x,y,z] = sphere(40);<br />

h=surf(x,y,z,...<br />

'FaceColor','c',...<br />

'EdgeColor','n');<br />

camlight; lighting gouraud;<br />

axis([-2 2 -2 2 -2 2]); grid on; axis square<br />

view(112,27)<br />

© Prof. José Amaral ALGA M06 - 26 12-11-2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!