Vous êtes sur la page 1sur 7

>> format rat

>> A=[3:3:18;-1/2*eye(3),-6*ones(3,3);zeros(1,5),4]

A=

3 6 9 12 15 18

-1/2 0 0 -6 -6 -6

0 -1/2 0 -6 -6 -6

0 0 -1/2 -6 -6 -6

0 0 0 0 0 4

>> B=[(9:-2:-3)']

B=

-1

-3

>> C=[5*ones(2,3),9*ones(2,2);ones(1,5);-2:1:2;eye(2),-9*ones(2,3)]

C=

5 5 5 9 9

5 5 5 9 9
1 1 1 1 1

-2 -1 0 1 2

1 0 -9 -9 -9

0 1 -9 -9 -9

>> D=((B*A)']

D=((B*A)']

Error: Unbalanced or unexpected parenthesis or bracket.

>> D=((C*A)^-1]'

D=((C*A)^-1]'

Error: Unbalanced or unexpected parenthesis or bracket.

>> D=((C*A)^-1)'

Warning: Matrix is singular to working precision.

D=

1/0 1/0 1/0 1/0 1/0 1/0

1/0 1/0 1/0 1/0 1/0 1/0

1/0 1/0 1/0 1/0 1/0 1/0

1/0 1/0 1/0 1/0 1/0 1/0

1/0 1/0 1/0 1/0 1/0 1/0

1/0 1/0 1/0 1/0 1/0 1/0

>> E=det(A)

Error using det

Matrix must be square.


>> F=det(A*C)

F=

1/29038994812

>> G=A+C

Error using +

Matrix dimensions must agree.

>> H=A+C^

H=A+C^

Error: Expression or statement is incomplete or incorrect.

>> H=A+C'

H=

8 11 10 10 16 18

9/2 5 1 -7 -6 -5

5 9/2 1 -6 -15 -15

9 9 1/2 -5 -15 -15

9 9 1 2 -9 -5

>> E=[8*ones(3,2),2*ones(3,1)]

E=
8 8 2

8 8 2

8 8 2

>> F=[-3/5*eyes(3)]

Undefined function 'eyes' for input arguments of type 'double'.

>> F=[-3/5*eye(3)]

F=

-3/5 0 0

0 -3/5 0

0 0 -3/5

>> G=[2,-5,7;1,9,6;2,0,-3]

G=

2 -5 7

1 9 6

2 0 -3

>> H=(E*F)'

H=

-24/5 -24/5 -24/5


-24/5 -24/5 -24/5

-6/5 -6/5 -6/5

>> J=5*E-3*F+6*G

J=

269/5 10 52

46 479/5 46

52 40 -31/5

>> K=det(G*F)

K=

1377/25

>> L=inv(inv(inv(G))*inv(inv(E)))

Warning: Matrix is singular to working precision.

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate.

RCOND = NaN.

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate.

RCOND = NaN.

L=

0/0 0/0 0/0

0/0 0/0 0/0

0/0 0/0 0/0


>> ((G^-1)^-1(F^-1)^-1)^-1

((G^-1)^-1(F^-1)^-1)^-1

Error: Unbalanced or unexpected parenthesis or bracket.

>> L=((G^-1)^-1(F^-1)^-1)^-1

L=((G^-1)^-1(F^-1)^-1)^-1

Error: Unbalanced or unexpected parenthesis or bracket.

>> L=inv(inv(inv(G))*inv(inv(F)))

L=

-3/17 -5/51 -31/51

5/51 -20/153 -5/153

-2/17 -10/153 23/153

>> G

G=

2 -5 7

1 9 6

2 0 -3

>> F
F=

-3/5 0 0

0 -3/5 0

0 0 -3/5

>>

Vous aimerez peut-être aussi