Getting different result deploytool .dll and matlab

3 vues (au cours des 30 derniers jours)
Ender Gürler
Ender Gürler le 16 Mar 2016
I have a autocorrelation function in matlab and i have a data but i get different result in matlab and C#.
Here is my Code in matlab i get 56 value:
function feedbackDelay=Autocorrelation(TargetSeries)
N = length(TargetSeries);
zt = zscore(TargetSeries,1);
autocorrt = nncorr( zt, zt, N-1, 'biased' );
[ sortact FD ] = sort(autocorrt(N:end),2,'descend');
for i=1:length(sortact)
if(sortact(1,i)>=0.80)
feedbackDelay(1,i)=FD(1,i);
%AAA(1,i)=sortact(1,i);
end
end
[max maxInd] =findpeaks(autocorrt(N:end));
maxInd = maxInd(1,1:5);
DataInv = 1.01 - autocorrt(N:end);
[Minima,MinIdx] = findpeaks(DataInv);
MinIdx = MinIdx(1,1:5);
feedbackDelay = [feedbackDelay maxInd MinIdx];
feedbackDelay = sort(feedbackDelay);
end
but i use deploytool,got .dll and references in C# i get 10 different result. Why is happened ?

Réponses (0)

Catégories

En savoir plus sur MATLAB Mobile dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by