Frank Einstein
- 166
- 1
- TL;DR Summary
- I want to calculate the covariance matrix of a large set of data. However, I get an error telling me that said matrix would be too big and therefore It cannot be done.
Hello everyone. I want to calculate the covariance matrix of a stochastic process using Matlab as
[CODE lang="matlab" title="Covariance matrix"]cov(listOfUVValues)
[/CODE]
being the dimensions of listOfUVValues 211302*50. I get the following error:
[CODE title="Error"]Requested 211302x211302 (332.7GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become
unresponsive. See array size limit or preference panel for more information.
Error in cov (line 156)
c = (xc' * xc) ./ denom;
[/CODE]
;
Is there a way to go arround this limitation or is it impossible to do?
Any answer is appreciated.
Best regards.
[CODE lang="matlab" title="Covariance matrix"]cov(listOfUVValues)
[/CODE]
being the dimensions of listOfUVValues 211302*50. I get the following error:
[CODE title="Error"]Requested 211302x211302 (332.7GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become
unresponsive. See array size limit or preference panel for more information.
Error in cov (line 156)
c = (xc' * xc) ./ denom;
[/CODE]
;
Is there a way to go arround this limitation or is it impossible to do?
Any answer is appreciated.
Best regards.