"corr" malfunctioning in cody

J.K043006 on 29 Aug 2024
Latest activity Reply by J.K043006 on 29 Aug 2024

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?
goc3
goc3 on 29 Aug 2024
Cody 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.
J.K043006
J.K043006 on 29 Aug 2024
That's helpful. Thanks.
J.K043006
J.K043006 on 29 Aug 2024
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.