Escolar Documentos
Profissional Documentos
Cultura Documentos
SEÑALES Y SISTEMAS
LIMA-PERU 2018
EJERCICIO 2.1:
****************************************************************************
x=1:6
L=length(x);
suma=0;
for i=2:2:L
suma=suma + x(i);
end
suma
*****************************************************************************
EJERCICIOS 2.2
x=-2:3
L=length(x);
i=0;
suma=0;
while i<L
i=1 +i;
if x(i)<0
x(i)=-x(i);
end
end
EJERCICIO 2.3
t=rand(1,10)
L=length(t);
for i=1:L
if t(i) >=0.2
t(i)=0.2;
t(i)=-0.2;
end
end
*****************************************************************************