signal.fftconvolve equivalent in Matlab
조회 수: 6 (최근 30일)
이전 댓글 표시
I hav a matrix of dipole moment and I need to get the autocorrelation funcion. In Python it does with these two lines of code. I am wondering what will be the Matlab equivalent for this two lines,
autocorr_x_full = (signal.fftconvolve(dipole_x_shifted,dipole_x[::-1], mode='same')[(-len(time)):] / np.arange(len(time), 0, -1))
autocorr = autocorr_full[:int(len(time) * fraction_autocorrelation_function_to_fft)]
댓글 수: 0
답변 (1개)
Swetha Polemoni
2021년 6월 29일
Hi Avik Mahata
It is my understanding that you want to do convolution and autocorrelation in matlab. You can use Matlab functions 'conv' and'autocorr' for convolution and autocorrelation.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!