my calculations lead me to have a matrix with dimensions of ((4^14),14) , but matlab said that out of memory !! .. What can I do ?

1 view (last 30 days)
my calculations lead me to have a matrix with dimensions of ((4^14),14) , but matlab said that out of memory !! .. What can I do ?

Answers (1)

Steven Lord
Steven Lord on 25 May 2017
Assuming your matrix is a real full double matrix, that requires a contiguous block of just over 30 GB worth of memory to store one copy of that matrix. In order to do anything with it, you'd need at least two or three copies of it in memory. Does your machine have 90 GB of memory?
Even if you did have that much memory, I'm guessing you're going to want to process each of your 4^14 rows in turn. If you did that at a rate of 1 row per second, you would be looking at:
>> years(seconds(4^14))
ans =
8.5064
eight and a half years of processing. So I agree with Stephen: change your algorithm. If you describe what you're trying to do in more detail, someone may be able to suggest an alternative approach that would get you an answer before November 2025.

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!