Getting different result deploytool .dll and matlab
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on MATLAB Mobile in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!