Getting different result deploytool .dll and matlab

조회 수: 3 (최근 30일)
Ender Gürler
Ender Gürler 2016년 3월 16일
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 ?

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Mobile에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by