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

 Accepted Answer

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.

More Answers (1)

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

Community Treasure Hunt

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

Start Hunting!