




Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!





transpose(A) ans = 1 1 - 1 2 - 3 0 1 4 - 2 %% Problema n°2: Genere una matriz ceros de 2x zeros(2) ans = 0 0 0 0 %% Problema n°3: Genere una matriz ceros de 1x zeros(1,2) ans = 0 0 %% Problema n°4: Genere una matriz unitaria de 3x ones(3) ans = 1 1 1 1 1 1 1 1 1 %% Problema n°5: Genere una matriz unitaria de 2x ones(2,3) ans = 1 1 1 1 1 1 %% Problema n°6: Genere una matriz identidad de 2x eye(2) ans = 1 0 0 1 %% Problema n°7: Genere una matriz compleja y halle su ángulo, norma, rango. D=[1 1+i - i,0 i 1+2i,1 1+2i 1+i] D =
1.0000 + 0.0000i 1.0000 + 1.0000i 0.0000 - 1.0000i 0.
D=[1,1+i,-i;0,i,1+2i;1,1+2i,1+i] D = 1.0000 + 0.0000i 1.0000 + 1.0000i 0.0000 - 1.0000i 0.0000 + 0.0000i 0.0000 + 1.0000i 1.0000 + 2.0000i 1.0000 + 0.0000i 1.0000 + 2.0000i 1.0000 + 1.0000i angle(D) ans =
0 0.7854 - 1. 0 1.5708 1. 0 1.1071 0.
norm(D) ans =
rank(D) ans = 2 %% Problema n°8: Genere una matriz cuadrada de 3x3 y halle sus vectores y valores propios, también halle su traza de esa matriz. G=[54 85 21;5 9 654;14 36 53] G = 54 85 21 5 9 654 14 36 53 e=eig(G) e =
[V,D]=eig(G) V =
%%Para hallar la exponencial de la matriz se utilizó el método de los valores propios y vectores propios [V,D]=eig(G) V =
E=Vdiag(exp(diag(D)))/V E = 1.0e+88 * 0.5698 1.2907 5. 0.9395 2.1281 9. ones(3) ans = 1 1 1 1 1 1 1 1 1 >> %% Problema n°5: Genere una matriz unitaria de 2x >> ones(2,3) ans = 1 1 1 1 1 1 >> %% Problema n°6: Genere una matriz identidad de 2x >> eye(2) ans = 1 0 0 1 >> %% Problema n°7: Genere una matriz compleja y halle su ángulo, norma, rango. >> D=[1 1+i - i,0 i 1+2i,1 1+2i 1+i] D = 1.0000 + 0.0000i 1.0000 + 1.0000i 0.0000 - 1.0000i 0. + 0.0000i 0.0000 + 1.0000i 1.0000 + 2.0000i 1.0000 + 0.0000i 1.0000 + 2.0000i 1.0000 + 1.0000i >> D=[1,1+i,-i;0,i,1+2i;1,1+2i,1+i] D = 1.0000 + 0.0000i 1.0000 + 1.0000i 0.0000 - 1.0000i 0.0000 + 0.0000i 0.0000 + 1.0000i 1.0000 + 2.0000i 1.0000 + 0.0000i 1.0000 + 2.0000i 1.0000 + 1.0000i >> angle(D) ans = 0 0.7854 - 1. 0 1.5708 1. 0 1.1071 0. >> norm(D) ans = 3. >> rank(D) ans = 2 >> %% Problema n°8: Genere una matriz cuadrada de 3x3 y halle sus vectores y valores propios, también halle su traza de esa matriz. >> G=[54 85 21;5 9 654;14 36 53] G = 54 85 21 5 9 654 14 36 53 >> e=eig(G) e = 204. 21. - 110. >> [V,D]=eig(G) V = - 0.5029 - 0.9360 0. >> %%Para hallar la exponencial de la matriz se utilizó el método de los valores propios y vectores propios >> [V,D]=eig(G) V = - 0.5029 - 0.9360 0. - 0.8292 0.3518 - 0. - 0.2438 0.0140 0. D = 204.3214 0 0 0 21.7349 0 0 0 - 110. >> E=Vdiag(exp(diag(D)))/V E = 1.0e+88 * 0.5698 1.2907 5. 0.9395 2.1281 9. 0.2762 0.6257 2. y=log(G) y = 3.9890 4.4427 3. 1.6094 2.1972 6. 2.6391 3.5835 3. B=sqrt(G) B = 7.3485 9.2195 4.
%% Problema n°6: Genere una matriz identidad de 2x >> eye(2) ans = 1 0 0 1 >> %% Problema n°7: Genere una matriz compleja y halle su ángulo, norma, rango. >> D=[1 1+i - i,0 i 1+2i,1 1+2i 1+i] D = 1.0000 + 0.0000i 1.0000 + 1.0000i 0.0000 - 1.0000i 0. + 0.0000i 0.0000 + 1.0000i 1.0000 + 2.0000i 1.0000 + 0.0000i 1.0000 + 2.0000i 1.0000 + 1.0000i >> D=[1,1+i,-i;0,i,1+2i;1,1+2i,1+i] D = 1.0000 + 0.0000i 1.0000 + 1.0000i 0.0000 - 1.0000i 0.0000 + 0.0000i 0.0000 + 1.0000i 1.0000 + 2.0000i 1.0000 + 0.0000i 1.0000 + 2.0000i 1.0000 + 1.0000i >> angle(D) ans = 0 0.7854 - 1. 0 1.5708 1. 0 1.1071 0. >> norm(D) ans = 3. >> rank(D) ans = 2 >> %% Problema n°8: Genere una matriz cuadrada de 3x3 y halle sus vectores y valores propios, también halle su traza de esa matriz. >> G=[54 85 21;5 9 654;14 36 53] G = 54 85 21 5 9 654 14 36 53 >> e=eig(G) e = 204. 21. - 110. >> [V,D]=eig(G) V = - 0.5029 - 0.9360 0. >> %%Para hallar la exponencial de la matriz se utilizó el método de los valores propios y vectores propios >> [V,D]=eig(G) V = - 0.5029 - 0.9360 0. - 0.8292 0.3518 - 0. - 0.2438 0.0140 0. D = 204.3214 0 0 0 21.7349 0 0 0 - 110. >> E=V*diag(exp(diag(D)))/V E = 1.0e+88 * 0.5698 1.2907 5. 0.9395 2.1281 9. 0.2762 0.6257 2. >> y=log(G) y = 3.9890 4.4427 3. 1.6094 2.1972 6. 2.6391 3.5835 3. >> B=sqrt(G) B = 7.3485 9.2195 4. 2.2361 3.0000 25. 3.7417 6.0000 7. %%Problema n°11: Genere 2 matrices A yB y realice la suma, resta y multiplicación A=[1,2,3;4,5,6;7,8,9] A = 1 2 3 4 5 6 7 8 9
B=[1,1,1;1,1,1;1,1,1]
ans = 2 3 4 5 6 7 8 9 10
A-B ans = 0 1 2 3 4 5 6 7 8 A*B ans = 6 6 6 15 15 15 24 24 24
http://www.unet.edu.ve/~jlrodriguezp/modss01.pdf