4 views (last 30 days)

Walter Roberson
on 19 Nov 2019

It is not possible to tell MATLAB to store variables on disk, at least not in the way you are describing.

You can tell your system to increase your available swap space, and your operating system will then automatically swap to and from memory. However, this tends to be slow.

You might be able to convert your cell array entries into tall() arrays and convolve those. Remember, though, that your thesis is that your convolved arrays are too big for memory, so the final result is probably going to be too big for memory. And then what do you do with it?

Walter Roberson
on 19 Nov 2019

You convert the individual cell arrays into tall arrays. When you convolve the tall arrays, the result will be a tall array, and MATLAB would automatically manage the RAM and disk use for that. Leave the result of the first step as a tall array and convolve with the next cell-turned-into-tall-array, and MATLAB will manage the RAM and disk use for that operation, and so on.

As long as the cell array elements fit into memory long enough to build tall arrays from them, then the convolution of them would not need to fit into memory.

Opportunities for recent engineering grads.

Apply Today
## 3 Comments

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/491690-to-do-arithmetic-operations-with-large-arrays-going-out-of-memory-space#comment_768478

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/491690-to-do-arithmetic-operations-with-large-arrays-going-out-of-memory-space#comment_768478

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/491690-to-do-arithmetic-operations-with-large-arrays-going-out-of-memory-space#comment_768589

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/491690-to-do-arithmetic-operations-with-large-arrays-going-out-of-memory-space#comment_768589

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/491690-to-do-arithmetic-operations-with-large-arrays-going-out-of-memory-space#comment_768844

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/491690-to-do-arithmetic-operations-with-large-arrays-going-out-of-memory-space#comment_768844

Sign in to comment.