Metodos Numericos
a =
1 1 1 1
1 1 0 1
2 2 3 0
-1 -1 -2 2
>> b=[7;8;10;0]
b =
7
810
0
>> rank(a)
ans =
3
>> rank([a b])
ans =
4
>> a=[1 6 8;4 17 12; 7 28 16;4 10 -8]
a =
1 6 8
4 17 12
7 28 164 10 -8
>> b=[19;42;65;8]
b =
19
42
65
8
>> c=[1 6;4 17]
c =
1 6
4 17
>> c=Inv(C)
??? Undefined function or variable 'C'.
>>c=Inv(c)
??? Undefined function or method 'Inv' for input arguments of
type 'double'.
>> c=inv(c)
c =
-2.4286 0.8571
0.5714 -0.1429
>> format rat
>> c=inv(c)
c =1 6
4 17
>> c=inv(c)
c =
-17/7 6/7
4/7 -1/7
>> G=[-17/7 6/7 0 0;4/7 -1/7 0 0; 0 0 0 0]
G =-17/7 6/7 0 0
4/7 -1/7 0 0
0 0 0 0
>> I=eye(3)I =
1 0 0
0 1 0
0 0 1
>> Z=[1;-1;1]
Z =
1-1
1
>> x=[a*b]
??? Error using ==> mtimes
Inner matrix dimensions must agree.
>> x=a*b
??? Error using ==> mtimes
Inner matrix dimensions must agree.
>> x=G*bx =
-71/7
34/7
0
>> a*x
ans =
19
42
65
8
>> x1=+(G*a-I)*Z
x1 =
-64/720/7
-1
>> x1=x+(G*a-I)*Z
x1 =
-135/7
54/7
-1
>> a*x1
ans =
19
42
65
8...
Regístrate para leer el documento completo.