Anda di halaman 1dari 2

PRIMER PUNTO

B=1:0.005:4;
H=[0.1 0.05 0.3 0.4 0.5 1.5 8 3 5];
A1=(B*H(1))/2;
A2=(B*H(2))/2;
A3=(B*H(3))/2;
A4=(B*H(4))/2;
A5=(B*H(5))/2;
A6=(B*H(6))/2;
A7=(B*H(7))/2;
A8=(B*H(8))/2;
A9=(B*H(9))/2;
subplot(3,3,1);
plot(B,A1);
subplot(3,3,2);
plot(B,A2);
subplot(3,3,3);
plot(B,A3);
subplot(3,3,4);
plot(B,A4);
subplot(3,3,5);
plot(B,A5);
subplot(3,3,6);
plot(B,A6);
subplot(3,3,7);
plot(B,A7);
subplot(3,3,8);
plot(B,A8);
subplot(3,3,9);
plot(B,A9);
-----------------------------------------------SEGUNDO PUNTO
M=magic(3)
suma=sum(M);
-----------------------------------------------TERCER PUNTO
x=[4 90 85 75;
2 55 65 75;
3 78 82 79;
1 84 92 93]
Desviacion1=std(x(1:4,1))
Desviacion2=std(x(1:4,2))
Desviacion3=std(x(1:4,3))
Desviacion4=std(x(1:4,4))
Varianza1=var(x(1:4,1))
Varianza2=var(x(1:4,2))
Varianza3=var(x(1:4,3))
Varianza4=var(x(1:4,4))
raiz1=sqrt (Varianza1)
raiz2=sqrt (Varianza2)
raiz3=sqrt (Varianza3)
raiz4=sqrt (Varianza4)
---------------------------------------------------CUARTO PUNTO

x=[4 90 85 75;
2 55 65 75;
3 78 82 79;
1 84 92 93]
help size
size(x)
help sort
sort(x)
sort(x, 'descend')
help sortrows
sortrows(x, 1)
---------------------------------------------------QUINTO PUNTO
teta1=3*pi;
y1=sin(2*teta);
teta2=0:0.2*pi:2*pi;
y2=sin(teta2);
asin(1);
z=-1:0.2:1;
y3= acos (z);
radianes=(45*pi)/180;
cos(radianes);
cosd(45);

Anda mungkin juga menyukai