'xcorr' unable to use

조회 수: 3 (최근 30일)
Jasmin Ittner
Jasmin Ittner 2020년 3월 22일
답변: Walter Roberson 2020년 3월 22일
I tried to calculate the xcorr and i got the 'Undefined function 'xcorr' for input arguments of type 'double'
I tried this example from the MathWorks documentation:
n = 0:15;
x = 0.84.^n;
y = circshift(x,5);
[c,lags] = xcorr(x,y);
stem(lags,c);
  댓글 수: 4
Jasmin Ittner
Jasmin Ittner 2020년 3월 22일
I use der MatLab R2013b.
It show me this:
C:\Program Files\MATLAB\R2013b\toolbox\signal\signal\xcorr.m % Has no license available
C:\Program Files\MATLAB\R2013b\toolbox\signal\signal\@gpuArray\xcorr.m % gpuArray method, Has no license available
The signal toolbox must be purchased?
From which version this signal toolbox is included?
Image Analyst
Image Analyst 2020년 3월 22일
I'd call and ask them. From what I showed, it seems to be part of base MATLAB now, not part of the Signal Processing Toolbox anymore (which I have). Your version is an antique - 6.5 years old. Can you upgrade it? Otherwise you can always write your own xcorr function - it's not hard, try it.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2020년 3월 22일
Up to R2018b, xcorr was part of the Signal Processing Toolbox; as of R2019a it was moved into basic MATLAB.
The signal toolbox must be purchased?
For your version, it would have to be. However, it is no longer possible to purchase toolboxes for versions that old. You would need to upgrade to the current release, and if you did that then you would not need te signal processing toolbox.
You might be able to take advantage of some of the File Exchange contributions, such as

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by