Beruflich Dokumente
Kultur Dokumente
Grupo
203036_39
Tutor.
Ing. Adriana del Pilar Noguera
Por medio de este trabajo logramos consolidar las diferentes ideas como
equipo de trabajo y se pueden identificar las diferentes expresiones
Booleanas, de igual forma interactuando en gran parte con la interface
de MATLAB e integrando diferentes funciones como las matrices,
vectores y graficas.
Código Fuente.
clc;clear;
res = true;
ylabel('Amplitud(y)');
xlabel('ANCHO DEL PASO');
disp('__________________________________________');
disp('Seleccionar el tipo de estructura que tiene la expresión
booleana');
disp('__________________________________________');
disp('1.(P AND Q) XOR Z');
disp('__________________________________________');
disp('2. P OR (Q XOR Z)');
disp('__________________________________________');
disp('3. (P XOR Q) AND (R OR S)');
disp('__________________________________________');
disp('4. ((P AND Q) XOR R) OR S');
disp('__________________________________________');
disp('ingresa ortra Tecla Para Salir de Este Menu')
disp('__________________________________________');
Opc=input('Ingrese la Opcion Deseada: ');
clc;
switch Opc
case 1
disp('__________________________________________');
disp('ESCOGISTE LA EXPRESION BOOLEANA (P AND Q) XOR Z');
disp('__________________________________________');
disp('ESTA ES SU TABLA DE VERDAD: ');
disp('__________________________________________');
Vector=[false,true];
for A=1:2
for H=1:2
end
end
tablaVer={'P','Q','Z','P AND Q XOR
Z';1,1,1,0;1,1,0,1;1,0,1,1;1,0,0,0;0,1,1,1;0,1,0,0;0,0,1,1;0,0,0,0};
disp(tablaVer)
disp('__________________________________________');
disp('ESTA ES LA COLUMNA DE RESULTADOS')
disp('__________________________________________');
disp(tablaVer(:,4))
A = 1;
w = 10 * pi;
rho = 0.5;
t = 0:0.001:1;
sq = A*square(w*t+rho);
plot(t,sq);
case 2
disp('__________________________________________');
disp('ESCOGISTE LA EXPRESION BOOLEANA P OR (Q XOR Z) ')
disp('__________________________________________');
disp('ESTA ES SU TABLA DE VERDAD: ');
disp('__________________________________________');
Vector=[false,true];
for A=1:2
end
tablaVer={'P','Q','Z','P OR (Q XOR
Z)';1,1,1,1;1,1,0,1;1,0,1,1;1,0,0,1;0,1,1,0;0,1,0,1;0,0,1,1;0,0,0,0};
disp(tablaVer)
disp('__________________________________________');
disp('ESTA ES LA COLUMNA DE RESULTADOS')
disp('__________________________________________');
disp(tablaVer(:,4))
A = 1;
w = 10 * pi;
rho = 0.5;
t = 0:0.001:1;
sq = A*square(w*t+rho);
plot(t,sq);
case 3
disp('__________________________________________');
disp('ESCOGISTE LA EXPRESION BOOLEANA (P XOR Q) AND (R OR S)')
disp('__________________________________________');
disp('ESTA ES SU TABLA DE VERDAD: ');
disp('__________________________________________');
Vector=[false,true];
for A=1:2
for H=1:2
end
end
disp(tablaVer)
disp('__________________________________________');
disp('ESTA ES LA COLUMNA DE RESULTADOS')
disp('__________________________________________');
disp(tablaVer(:,5))
A = 1;
w = 10 * pi;
rho = 0.5;
t = 0:0.001:1;
sq = A*square(w*t+rho);
plot(t,sq);
case 4
disp('__________________________________________');
disp('ESCOGISTE LA EXPRESION BOOLEANA ((P AND Q) XOR R) OR S')
disp('__________________________________________');
disp('ESTA ES SU TABLA DE VERDAD: ');
disp('__________________________________________');
Vector=[false,true];
for A=1:2
for H=1:2
end
end
A = 1;
w = 10 * pi;
rho = 0.5;
t = 0:0.001:1;
sq = A*square(w*t+rho);
plot(t,sq);
otherwise
disp('Saliendo del menu');
end
Conclusiones.