Professional Documents
Culture Documents
02/12/2010. |
1
Introducción.
En matemáticas,
02/12/2010. |
1
CODIGO EN M-FILE.
02/12/2010. |
1
02/12/2010. |
1
Mm x n x Mn x p = M m x p
02/12/2010. |
1
CÓDIGO EN M-FILE.
02/12/2010. |
1
02/12/2010. |
1
CÓDIGO EN M-FILE.
clear
02/12/2010. |
1
while (M~=N)
fprintf('nn');
end
fprintf('nn');
for I=1:N
for J=1:M
A(I,J)=input('');
end
end
B=[A,eye(M,N)]
G=0;
while (G<M)
G=G+1;
B(G,:)=B(G,:)/B(G,G);
for J=1:M
if (J==G)
K=G;
02/12/2010. |
1
else
if (K==M) K=1;
B(K,:)=B(K,:)-B(K,G)*B(G,:)
end
end
end
CORRIDA EN MAT-LAB.
02/12/2010. |
1
A=
3 1 0
2 3 1
3 1 0
B=
02/12/2010. |
1
3 1 0 1 0 0
2 3 1 0 1 0
3 1 0 0 0 1
B=
B=
02/12/2010. |
1
B=
B=
02/12/2010. |
1
B=
B=
B=
02/12/2010. |
1
B=
B=
02/12/2010. |
1
B=
B=
02/12/2010. |
1
02/12/2010. |