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 Center および File ExchangeMATLAB Mobile についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by