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