I've been working on some matrix problems recently(Problem 55225)

and this is my code

It turns out that "Undefined function 'corr' for input arguments of type 'double'." However, should't the input argument of "corr" be column vectors with single/double values? What's even going on there?
3 Comments
Time DescendingCody does not currently support toolboxes.
If you look up the documentation page for corr, note that it references the Statistics and Machine Learning Toolbox in the left Contents panel—it is part of that toolbox.
For functions in vanilla MATLAB, like the newly introduced clip function, its documentation page has no reference to any toolbox.
I believe that I've almost got the answer correct, but the error message really confuses me. So I wonder what's going on with "corr". Please do not see this discussion as my question on the specific problem(Problem 55225), but my action of suspecting whether I've correctly understood the help document about "corr". I show the exact problem to see if anyone has encountered the same problem as I do.
Sign in to participate