Code covered by the BSD License  

Highlights from
Logiciels temps réel

Logiciels temps réel

by

 

Real-time software concerning the domains of the signal processing, feedback and regulation

unite.m
if exist('choix')==1
    if ~isempty(choix)
        if choix=='R'
            s_elt='Ro (kohms)';
        else
            s_elt='Co (nF)';
        end;    
        txt_valeur=uicontrol(gcf,'style','text','unit','normalized',...
		    'position',[0.6 0.1 0.1 0.035],...
	        'backgroundcolor','w','foregroundcolor','k','string',s_elt,'fontunits','normalized','fontsize',0.5,'fontweight','bold');
        ed_valeur=uicontrol(gcf,'style','edit','unit','normalized',...
		        'position',[0.7,0.1 0.1 0.035],'backgroundcolor','y',...
	           'foregroundcolor','b','fontunits','normalized','fontsize',0.5,'fontweight','bold','max',1,...
		        'callback',['s_val=get(ed_valeur,''string'');',...
                'if ~isempty(s_val) valeur=str2num(s_val)*(1e3*(choix==''R'')+1e-9*(choix==''C''));',...
                'lance_etude;end;']);              
    end;
end;    

Contact us