Documentos de Académico
Documentos de Profesional
Documentos de Cultura
203036A
Código: 1052406448
Inicio
Si
Solicitamos ingresar el valor del led verde entre 0 y 1, para la opción de seguir.
Si
Si
Cargamos la imagen
Sí No
Mostramos ceros
Cargamos la imagen
Visualizamos la imagen
Mostramos unos
Cargamos la imagen
Visualizamos la imagen
SI NO
Mostramos ceros
Cargamos la imagen
Visualizamos la imagen
CODIGO FUENTE
clc
clear
F=input (' Ingrese el Valor de Rojo (Entre 0 & 1): '.')
if (F<0) | (F>1) then
disp ('Eror solo se permite el valor de 0 ò 1')
F=input(' Ingrese el Valor de Rojo (Entre 0 & 1): '.')
end
C=input ('Ingrese el Valor de Verde (Entre 0 & 1): '.')
if (C<0) | (C>1) then
disp ('Eror solo se permite el valor de 0 ò 1')
C=input(' Ingrese el Valor de Verde (Entre 0 & 1): '.')
end
f= input('Ingrese el numero de Filas de la matris: '.')
c= input('Ingrese el numero de Columnas de la matris: '.')
t=input ('Ingrese el tiempo en segundos para el cambio: '.' )
clc
if (F>0) then
disp (ones (f,c));
imagen1=imread('C:\Users\usuario\Desktop\Sofware\Parar.png');
imshow (imagen1)
else
disp (zeros (f,c));
imagen1=imread('C:\Users\usuario\Desktop\Sofware\Parar.png');
imshow (imagen1);
tic();
end
tic();
realtimeinit(t);
realtime(0);
realtime(t);
toc()
clc
if (C>0) then
disp (ones (f,c))
imagen2=imread('C:\Users\usuario\Desktop\Sofware\Seguir.png');
imshow (imagen2);
else
disp (zeros (f,c))
imagen2=imread('C:\Users\usuario\Desktop\Sofware\Seguir.png');
imshow (imagen2);
end
tic();
realtimeinit(t);
realtime(0);
realtime(t);
toc()
FUNCIONAMIENTO