No BSD License  

Highlights from
BPSK Simulator for Low Rate Transmisions

image thumbnail
from BPSK Simulator for Low Rate Transmisions by César Delgado González
BPSK Simulator for didactical purposes. Systemic coding style.

creaLab.m
%------------------------------------------------------------------------
%|  	creaLab
%------------------------------------------------------------------------
%|      Script que crea todo lo relacionado con la manipulacion de las 
%| seales de Test del laboratorio
%------------------------------------------------------------------------
%|   Autor: Cesar Delgado
%|   Fecha: 19-Abril-2.004
%------------------------------------------------------------------------

fich = ' Test 1 | Test 2 | Test 3 | Test 4 ';
pos = [0.4 0.009 0.20, 0.02];

% 1.- Checkbox para visualizacion de Seales propuestas
%-------------------------------------------------------
Texto = sprintf('evento=%d; actualizaInterfaz;', contEventos);
contEventos = contEventos+1;
verSignalLab = uicontrol('Style','Checkbox', ...
      'Units','normalized', ...
      'Position',pos, ...
      'String','Seales Propuestas',...
      'FontWeight','bold',...
      'FontAngle','italic',...
      'Background',[.7 .7 .7],...
      'Foreground',[0 0 0],...
      'Callback',Texto); 


% 2.- Desplegable con seales propuestas
%---------------------------------------
pos = [pos(1)+pos(3)+0.01, pos(2)+0.019, 0.07, 0.01];

Texto = sprintf('evento=%d; actualizaInterfaz;', contEventos);
contEventos = contEventos+1;
fichTest = uicontrol('Style','popupmenu',...
       'Units','normalized',...
       'String', fich,...
       'HorizontalAlignment', 'left',...
       'FontWeight','normal',...
       'FontSize',5,...
       'Position',pos, ...
       'Enable','Off',...
       'Backgroundcolor',[.8 .8 .8], ...
       'Callback',Texto);   
   
 clear fich Texto pos

Contact us at files@mathworks.com