Getting different result deploytool .dll and matlab

1 Ansicht (letzte 30 Tage)
Ender Gürler
Ender Gürler am 16 Mär. 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 ?

Antworten (0)

Kategorien

Mehr zu MATLAB Mobile finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by