See below:
>> a = sparse(1e12,1);>> b = sparse(1,1e9);>> whos a bName Size Bytes Class Attributesa 1000000000000x1 32 double sparse b 1x1000000000 8000000024 double sparse >> clear all>> c = sparse(1,1e10);Error using sparseRequested 1x10000000000 (74.5GB) array exceeds maximum array size preference.Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.
Best Answer