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

M=gene_bb(DEF)
function M=gene_bb(DEF)

te=DEF(4);
fe=1/te;
fh=DEF(10);
th=1/fh;
f=0:1/DEF(5):fh/2;
N=2*length(f)-1;
sc=sum(100*clock);
randn('state',sc);
Y=DEF(7)*exp(1i*2*pi*rand(size(f)))/sqrt(N);
Y(1)=DEF(7)/sqrt(N);
%Y(1)=0;
long=length(Y);
YR=fliplr(Y(2:long));
YB=[Y conj(YR)];
N=length(YB);
[u t]=tfdinv(YB,fh);
v=zeros(DEF(8),1);
facteur=fe/fh;
for k=1:1:DEF(8)
    v(k)=u(floor((k-1)/facteur)+1);
end;
%umoy=mean(u);
%variance=mean(u.^2);
signals=struct('values',real(v),'dimensions',1);
M=struct('time',[],'signals',signals);

Contact us