Está en la página 1de 3

4.

[1 2 3 4; 5 6 7 8; 9 10 11 12]

4.3.1
A=[3 -7 2; 4 9 -1]

B=[-4 12 7; 8 6 2]

C=[2 -7; 4 -8; -9 6]


A-B
A+B
B-A
4.3.2

A*C
C*A
C*B
B*C
4.3.3

A=[3 -6; 4 5]
B=[-1 4; 6 -7]
A/B
A\B
B/A
B\A
4.3.4

A=[2 5; 4 9]
p=2
A^p
p^A
A.^p
4.3.5
A=[ 1 2 3; 5 6 7; 9 10 11]
poly(A)
4.4
x= [1 3 -7 4]
y=[9; 18; -5; 6; -7; 2; 4; 3; 11; 17]
y(2:4)
y(2:3:10)
y(9:-3:3)
a=[2;3;6]
b=[4;5;-1]
c=12
a+c
a*c
a.*b
a.^b
a.\b
c.^a

A =

3 -2 0
4 9 17
2 -4 8
6 2 -5

b=[3;2;-7]
A*b
4.4.1
x=[ 3 4 -2]
norm (x, 1)
norm (x, 2)
norm (x)
norm(x,inf)

4.4.2
x=linspace(1, 10, 10)
x= 3: 0.7:6
x=logspace (2, 5, 4)
4.5
a=[2;3;-2;1]
b=[3;-8;7;4]
c=dot(a, b)
a'*b
a1=[9;6;23]
b1=[-27;11;12]
cross(a1, b1)
4.6
D=[2 5; -4 9;]
D^3+2*D^2-7*D+17
4.7
A=[1 2; 3 4;]
v=[10;23]
x=linsolve(A, v)
A=[2 -2 0 0; -2 6 -2 0; 0 -2 6 -2; 0 0 -2 0;]
b=[5;0;0;0]
x=A\b
4.8
A=[2 4 0; 1 2 1; 0 4 2]
eig(A)
B=[0 2 2; 2 0 2; 2 2 0]
eig(B)
[V, D]=eig(A)
4.9
A=[2 4 0; 1 2 1; 0 4 2]
eig(A)
B=[0 2 2; 2 0 2; 2 2 0]
eig(B)
[V, D]=eig(A)
Estudiante.Nombre='Pablo Morales';
Estudiante.ID= 271094;
Estudiante.Semestre= 'Otoño 2009';
Estudiante.Tareas=[10 9.8 8];
Estudiante.Examenes=[9.9 8.9];
Estudiante.Graduacion=2012;
Estudiante.Tareas=[10 9.9 9.8];
Estudiante.Examenes=[Estudiante.Examenes, 9.7];
Estudiante(2).Nombre='Laura Michele';
Estudiante(2).ID= 19890510;
Estudiante(2).Semestre= 'Otoño 2012';
Estudiante(2).Tareas=[10 10 7.8];
Estudiante(2).Examenes=[10 9.6];
Estudiante(2).Graduacion=2013;
Estudiante(2).Tareas(3)
4.10
Estudiante1{1,1}='Juan Pérez';
Estudiante1{1,2}=271094;
Estudiante1{1,3}='Otoño 2013';
Estudiante1{1,4}=[10 9.8 8];
Estudiante1{1,5}=[9.9 8.9];
Estudiante1{1,6}=2015;
cellplot(Estudiante1)
Estudiante2{1,1}='Laura Michele';
Estudiante2{1,2}=19890510;
Estudiante2{1,3}='Otoño 2013';
Estudiante2{1,4}=[10 10 7.8];
Estudiante2{1,5}=[10 9.6];
Estudiante2{1,6}=2015;
datos={Estudiante1;Estudiante2}
datos{1}
datos{1} {1,1}

También podría gustarte