Ones matrix size limit?

조회 수: 5 (최근 30일)
david
david 2013년 9월 8일
Hi
I have tried to create ones matrix size (36x5034313) And I get a out of memory error... What is the maximum size of ones matrix? If I'll convert the matrix to cell array I'll stil staying with error?
Or if someone can give my a soulution oh to create this matrix... Thanks
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 9월 8일
Perhaps you could recode to use 0's instead of 1's, and then use a sparse array?

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

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 8일

Jan
Jan 2013년 9월 8일
A 36x5034313 matrix of type double occupies 1.45 GB RAM. If you have stored the values in a cell array before, at least 2.9 GB RAM are required. If you run a 64 bit version of Matlab and install some more GBs, this should work sufficiently.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by