Professional Documents
Culture Documents
ACTIVIDAD COLABORATIVA 2
GRUPO 302526_27
TUTOR
NELSON HUMBERTO ZAMBRANO CORTES
INTRODUCCION
(Stephen Hawking)
CONTENIDO
Introduccion
Abstrac
Resumen
Desarrollo de actividades
Pantallasos en donde se vea la fecha del sistema con las graficas
Concluciones referencias
ABSTRAC
According to work done with Matlab software and the exercises, we find that the
mathematical formalisms also known as mathematical modeling, applied to the
development of various daily operations.
The development work gave us each point according to the guide a new knowledge that is
ordered as follows:
Point 1: One of the most innovative results occurs in developing this point you find that the
operation of this software not only enables us to reproduce musical sounds, but also lends
itself to the analysis of amplitudes and magnitudes, plotting behavior waves.
Point 2: With the development of Section 2 we learned to build with the help of matlab
sofwar an application for solving matrices automatically helpful for those who belong to
the mathematical world application.
Point 3: Field work with matlab is very wide, in addition to mathematical operations,
We introduction. the possibility of the defendant plotted according to software requirement
with the correct mathematical language.
An important point in this research found is that for the proper management of the software
knowledge of basic commands is required to order the operations and skill in the
mathematical modeling.
This opens the door to new knowledge based on the mathematical modeling through
working tool matlab
RESUMEN
DESARROLLO DE ACTIVIDADES
PUNTO No 1
Cada una de las notas musicales tiene una frecuencia determinada y es posible generar
tonos musicales a partir de ellas, para poder reproducir esos tonos musicales en Matlab es
necesario generar la onda a partir de las muestras de la seal seno como se muestra a
continuacin:
fm=22050 ; frecuencia de muestreo
t=0:1/fm:1; vector con instantes de muestreos a 1 segundo
x=sin(2*pi*f*t); f es la frecuencia de la seal o tono a generar
plot(t,X);
wavplay(x,fm); reproduce el tono definido
ans = 1.9314
ans = 0.9742
ans = 1.4596
ans = 0.6593
ans = 0.8012
ans = 0.3794
ans = 1.2952
ans = 0.5030
ans = 1.4625
ans = 0.8067
ans = 0.8424
ans = -0.0067
ans = 0.9273
ans = 0.2486
ans = 1.0063
ans = 0.2632
ans = 0.6554
ans = -8.6383e-005
ans=0.1711
Resta de seales.
Codigo.
disp('Presione para reproducir la resta');
pause()
y=x{1,1}-x{3,3};
hold on
plot(t,y,'y')
sound(y,fm)
hold off
Grafica de la resta.
PUNTO No 2.
Representar las siguientes seales discretas x1(n)=sin (pi*n) y x2(n)=cos (2*pi*100*n) si
se muestrean a una frecuencia de 185 Hz.
Codigo:
clc
clear
n=0:9;
Fm=1000;
Fa=100;
x=sin(pi*Fa*n);
stem(n,x)
title('seal muestreada a 185hz')
xlabel('n')
ylabel('x(n)')
xlabel('frecuencia')
clc
clear
n=0:9;
Fm=1200;
Fa=100;
x=sin(pi*Fa*n);
stem(n,x)
title('seal muestreada a
100hz')
xlabel('n')
ylabel('x(n)')
xlabel('frecuencia')
10
clc
clear
n=0:9;
Fm=1000;
Fa=100;
x=cos(2*pi*Fa*n);
stem(n,x)
title('seal muestreada de 185hz')
xlabel('n')
ylabel('x(n)')
xlabel('frecuencia')
clc
clear
n=0:9;
Fm=1200;
Fa=100;
Seales discretas x2(n)= cos (2*pi*100*n) / variando la frecuencia
x=cos(2*pi*Fa*n);
stem(n,x)
title('seal
muestreada de
100hz')
xlabel('n')
ylabel('x(n)')
xlabel('frecuencia')
11
3. Tome el nmero celular de uno de los integrantes del grupo, a partir de este genere una
matriz cuadrada (a), cada digito se almacena en una celda de la matriz; emplee los dgitos
que requiera para formar la matriz de un orden superior a 2x2, si los dgitos no son
suficientes, repita los que necesite hasta completar el orden de la matriz a trabajar. Con la
matriz obtenida realice:
a. b=3*a
b. c=a-b
c. d=a+c
Codigo:
disp('Presione enter para el siguiente ejercicio')
pause()
%3
%El nmero de celular es 301 578 9243
a= [3 0 1 5;7 8 9 2;4 3 3 0;1 5 7 8]
b=3*a
c=a-b
d=a+c
a=
3
15
21
24
27
12
15
21
24
b=
12
c=
-6
-2 -10
-6
-6
-4
0
d=
-3
-1
-5
-7
-8
-9
-2
-4
-3
-3
-1
-5
-7
-8
13
4. Realice un programa que capture los datos a almacenar en dos vectores V1 y V2 y los
compare elemento a elemento, de forma tal que genere un tercer vector V3 que almacene: el
mismo nmero si en la comparacin resultan ser iguales, el mayor de ellos si resultan ser
diferentes y es par el mayor, si son diferentes pero el mayor es impar debe almacenar el
menor.
Codigo:
disp('Presione enter para el siguiente ejercicio')
pause()
V1=input('Ingrese el vector V1 entre Corchetes\n V1 = ');
V2=input('\nIngrese el vector V2 entre Corchetes\n V2 = ');
n1=length(V1);
n2=length(V2);
if n1>=n2
n=n2;
else
n=n1;
end
for i=1:n
if V1(i)==V2(i)
V3(i)=V1(i);
else
if V1(i)>V2(i)
if mod(V1(i),2)==0
V3(i)=V1(i);
else
V3(i)=V2(i);
end
else
if mod(V2(i),2)==0
V3(i)=V2(i);
else
V3(i)=V1(i);
end
end
end
end
V3
14
Simulacin:
Ingrese el vector V1 entre Corchetes
V1 = [1 3 5 7 8 9 3]
Ingrese el vector V2 entre Corchetes
V2 = [3 7 0 2 6 9]
V3 =
1
15
16
17
for i=1:n
if V1(i)==V2(i)
V3(i)=V1(i);
else
if V1(i)>V2(i)
if mod(V1(i),2)==0
V3(i)=V1(i);
else
V3(i)=V2(i);
end
else
if mod(V2(i),2)==0
V3(i)=V2(i);
else
V3(i)=V1(i);
end
end
end
end
V3
18
CONCLUSIONES
1)
Este trabajo colaborativo nos Impulso a relacionarnos con el software en
cuestin (matlab).
2)
Matlab es una de las herramientas puestas a disposicin de la ingeniera que
a travs del modelamiento matemtico dinamiza de una forma prctica el
modelamiento matemtico.
3)
4)
5)
19
REFERENCIAS BIBLIOGRAFICAS
Juan Olegario Monroy Vsquez 2010. 302526 - Cad para electrnica. Tomado de
wwwunad.edu.co.
20