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

fft_simule.m
function [MOG,x,X,K]=fft_simule(MOGi,DEF)

%   Choix du signal simul

te=DEF(10);
m=DEF(9);
MOG(1:2,:)=MOGi(1:2,:);
MOG(3:4,:)=zeros(2,7);
fe=1/te;
N=2^m;
x=zeros(N,1);
X=x;
K=(0:1:N-1)';
figure(1)
e=ecran;
if e(1)<0
    e(1)=0;
end;
set(gcf,'position',e)
set(gcf,'unit','normalized','color','w')
grid off
set(gca,'xcolor','w','ycolor','w')
text(0.5,0.95,'SIGNAL ETUDIE :','color','r','fontunits','normalized','fontsize',0.03,'fontweight','bold',...
    'horizontalalignment','center','verticalalignment','middle')
signal=0;
texte={'';'Signal sinusodal';'Signal carr';'Signal triangulaire';'Suite priodique d''impulsions';'Dents de scie';...
    'Bruit';'AUTRE'};  
txt=uicontrol(gcf,'style','text','unit','normalized',...
		            'position',[0.1 0.8 0.4 0.05],'backgroundcolor','w',...
	                'foregroundcolor','r','fontunits','normalized','fontsize',0.5,'fontweight','bold','string','Type de signal :');                
MOG(3,2)=uicontrol(gcf,'style','popupmenu','unit','normalized',...
                    'position',[0.1,0.75,0.4,0.05],'backgroundcolor','y',...
                    'foregroundcolor','b','fontunits','normalized','fontsize',0.5,'fontweight','bold','string',texte,...
                    'callback','signal=get(MOG(3,2),''value'');[MOG,DEF,s,x,X,K]=definition_signal(MOG,DEF,signal,s);');       

Contact us