I want to create a [315,000 x 315,000] matrix.
3 views (last 30 days)
Show older comments
Ali Bkr
on 27 Jan 2016
Answered: Walter Roberson
on 27 Jan 2016
I want to create a [315,000 x 315,000] matrix. what can I do i to solve this problem and create the desired matrix size?
Hint: my computer has a i5 processor and 4GB RAM, and I'm working on WIN10 pro.
0 Comments
Accepted Answer
Walter Roberson
on 27 Jan 2016
If the matrix is sparse and logical or double precision then you need to create it with one of the sparse creation routines such as sparse(). The size of matrix you would be able to fit would depend upon how densely populated the sparse matrix was.
If the matrix is not sparse but is logical or uint8 or int8 then you need about 950 megabytes per copy of the matrix.
If the matrix is not sparse but is uint16 or int16 then you need about 1.9 gigabytes per copy of the matrix.
If the matrix is not sparse but is uint32 or int32 or single precision, then you need about 3.7 gigabytes per copy of the matrix.
If the matrix is not sparse and is double precision then you need about 7.4 gigabytes per copy of the matrix.
If you do not presently have enough memory, then you will need to add more RAM or add virtual memory (such as swapping to disk.) Swapping to disk can about 100 times or more slower than if you had enough RAM.
0 Comments
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!