How can I get good matrix approximations using a sparse matrix?

I have a matrix A (dimension 4000000 x 5) and a sparse matrix B (dimension 4000000 x 2000000). Now I am searching for an approximation of X: A * X = B
Also I need an approximation for Y: A * Y * A' = C (C is a sparse 4000000 x 4000000 matrix)

 채택된 답변

Matt J
Matt J 2013년 11월 4일
편집: Matt J 2013년 11월 4일
X=A\B;
Y=A\C/A';

댓글 수: 3

Error using \
Out of memory. Type HELP MEMORY for your options.
Ah well. Then alternatively
Ap=pinv(A);
X=Ap*B;
Y=Ap*C*Ap';
This works but I can't calculate
A * X
afterwards without getting the memory error.

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

추가 답변 (0개)

카테고리

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

질문:

2013년 11월 4일

댓글:

2013년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by