Out of memory using cov function

Hi,
I am trying to run the cov function on my matrix (3x154401 double) and I am getting:
??? Out of memory. Type HELP MEMORY for your options.
Error in ==> cov at 95
xy = (xc' * xc) / m;
I have a 64-bit system and Windows is telling me I have 1706MB of free memory, would increasing the size of my page file help?
Any help much appreciated, Dinyar

댓글 수: 4

Oleg Komarov
Oleg Komarov 2012년 3월 27일
how long is xc?
Dinyar
Dinyar 2012년 3월 27일
How can I see that? It is not shown in my variables window...
Oleg Komarov
Oleg Komarov 2012년 3월 27일
You sure you don't want to to do cov(154401x3). I mean, how many series do you have?
Dinyar
Dinyar 2012년 3월 27일
Hmm... that could potentially be it. The information was imported from a genereated .mat file. The function does work as cov(154401x3). I will have to test the result on the rest of my code. cheers.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2012년 3월 27일

0 개 추천

It might help, but what size is your input matrix?
It is not uncommon for people to ask to take the covariance of matrices that are too large to process in any humanly meaningful amount of memory.

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

질문:

2012년 3월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by