Hi all,
I am calculating a contingency table (using crosstab function) from a large array and the result will be a matrix of a size of [175473×175473]. I am running the script with a laptop with 32GB and unfortunately the RAM is not enough. I have noticed that Matlab by default, allocates memory for double variables which requice 4 times more memory than double. The contingency table should be an integer variable and not double. Is there any way to force crosstab to compute the result on integer data so that I can save memory for running the calculation?
Best Answer