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

[y,te,matrice]=fft_calcul_inv(X,N,fe,erreur)
function [y,te,matrice]=fft_calcul_inv(X,N,fe,erreur)


te=1/fe;
if ~erreur
    figure(2)
    e=ecran;
    if e(1)<0
    e(1)=0;
    end;
    set(gcf,'position',e)
    set(gcf,'color','w')
    M=length(X);
    if M>N
        X=X(ceil(M/2)-N/2+1:ceil(M/2)+N/2);
    end;
    spectre(-N/2:1:N/2-1,abs(X))
    grid on
    [y,t]=fft_tfdinv(X,fe,'c');
    matrice.time=[];
    matrice.signals.values=y';
    matrice.signals.dimensions=1;
    set(gcf,'toolbar','figure')
    boutonok2=uicontrol(gcf,'style','push','unit','normalized',...
		'position',[0,0.95,0.1,0.05],...
	    'string','OK','foregroundcolor','r','fontunits','normalized','fontsize',0.5,'fontweight','bold',...
       'callback','lance_reconstruction(matrice,te,N)');
    boutonfin2=uicontrol(gcf,'style','push','unit','normalized',...
		'position',[0,0.90,0.1,0.05],...
	    'string','Retour','foregroundcolor','r','fontunits','normalized','fontsize',0.5,'fontweight','bold',...
       'callback','on_ferme;[y,U,matrice,s]=def_spectre(fe,N,s);');
else
    matrice.time=[];
    matrice.signals.values=zeros(N,1);
    matrice.signals.dimensions=1;
    y=zeros(N,1);
end;

Contact us