# Santo agosrinho

Páginas: 2 (322 palavras) Publicado: 19 de março de 2013
Questão 05.

A=[-3 0 -2;4 -5 6;3 -5 11];
>> B=A'

B =

-3.00 4.00 3.00
0 -5.00 -5.00
-2.00 6.00 11.00

>>C=A-B

C =

0 -4.00 -5.00
4.00 0 11.00
5.00 -11.00 0

>> D=A+B

D =

-6.00 4.001.00
4.00 -10.00 1.00
1.00 1.00 22.00

>> A(1,:)=[20 -30 -40]

A =

20.00 -30.00 -40.00
4.00-5.00 6.00
3.00 -5.00 11.00

>> C=A(:,1)

C =

20.00
4.00
3.00

>> C=A(2:3,2:3)

C =

-5.00 6.00-5.00 11.00.

>> x=[-1 0 2]

x =

-1.00 0 2.00

>> y=[-2 -1 1]

y =

-2.00 -1.00 1.00

>> x*y
??? Error using ==>*
Inner matrix dimensions must agree.

>> x*y'

ans =

4.00

>> C=x+2

C =

1.00 2.00 4.00

>> a=[1 5 8;0 3 4;5 7 1];
>> a=[1 5 8;0 3 4;5 7 1]a =

1.00 5.00 8.00
0 3.00 4.00
5.00 7.00 1.00

>> size(a)

ans =

3.00 3.00

>>b=inv(a)

b =

0.56 -1.13 0.09
-0.44 0.87 0.09
0.33 -0.40 -0.07

>> c=b*a

c =

1.00 0.000.00
0 1.00 -0.00
0 0 1.00

>> c=b/a

c =

0.84 -1.65 -0.06
-0.60 1.220.03
0.34 -0.70 -0.00

>> c=b/a

c =

0.84 -1.65 -0.06
-0.60 1.22 0.03
0.34 -0.70...

Por favor, assinar para o acesso.