Problem with arguments when calling correlation dimension function

Hello,
I am trying to calculate the correlation dimension of a given time series with dimension 10 and time lag 35 ms. According to this link https://es.mathworks.com/help/predmaint/ref/correlationdimension.html
I am typing corDim = correlationDimension(X,35,10) where X is my time series as a row vector, but I get the following error:
"Error using correlationDimension>parseAndValidateInputs (line 170)
Expected a string scalar or character vector for the parameter name"
The error doesn't appear when I call the function by giving X as the only argument. Does anybody know why? Shouldn't it work when specifying lag and dimension as well?
Thanks in advance.
Katerina

 채택된 답변

Walter Roberson
Walter Roberson 2019년 4월 30일

1 개 추천

You are using R2018a or R2018b (the function was introduced in R2018a). The function was enhanced in R2019a and you are looking at the documentation for that enhanced version.

추가 답변 (1개)

kate rina
kate rina 2019년 4월 30일

0 개 추천

Small details that make the difference in this life. It all makes sense now! Thank you!

카테고리

질문:

2019년 4월 30일

답변:

2019년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by