Lbessma
Messages postés1Date d'inscriptionmardi 7 avril 2009StatutMembreDernière intervention 7 avril 2009
-
7 avril 2009 à 10:50
Bonjour,
J'ai un code écrit sous Matlab qui sert à calculer une intégrale.
et je dois comprendre l'algorithme pour l'utiliser après, en fait j'arrive pas à comprendre toute chose
voici l'algorithme et si quelqu'un peut m'aider, c'est urgent.
Merci d'avance.
%%%%%%%%%%%%%%%%
sqrt2 = sqrt(2);
sqrtsqrt2 = sqrt(sqrt2);
N = 500;
Q = 10;
DeltaQ = 0.001;
xQ = (-Q:DeltaQ:Q)*sqrt2;
P = 2;
Ratio = 50; % Should be an integer
DeltaP = Ratio*DeltaQ;
xP = (-P:DeltaP:P)*sqrt2;
LengthP = length(xP);
LengthQ = length(xQ);
AmbiguityIOTAP = zeros(LengthP, LengthP);
Indext = -(LengthP+1)/2;
for t = xP,
Indext = Indext + 1;
Indexf = 0;
for f = xP,
Indexf = Indexf + 1;
if (Indext < 0),
AmbiguityIOTAP(Indext+(LengthP+1)/2, Indexf) = DeltaQ*sqrt2*IOTA(1:LengthQ+Indext*Ratio) * ((IOTA(1-Indext*Ratio:LengthQ).*exp(j*2*pi*f*xQ(1:LengthQ+Indext*Ratio))).');
else
AmbiguityIOTAP(Indext+(LengthP+1)/2, Indexf) = DeltaQ*sqrt2*IOTA(Indext*Ratio+1:LengthQ) * ((IOTA(1:LengthQ-Indext*Ratio).*exp(j*2*pi*f*xQ(Indext*Ratio+1:LengthQ))).');
end
end
end