Specify an upper bound for the variable or unknown dimensions, as shown onĀ <https://www.mathworks.com/help/gpucoder/ug/_mw_8583a014-aff1-4dae-8ffb-e72ffbd10869.html MATLAB Language Features Support> for GPU Coder.
As of MATLAB 7.6 (R2008a), The maximum matrix size allowed in 64-bit MATLAB running on a 64-bit Mac is less than 8TB, which is the same as the maximum matrix size allowed with a 64-bit Windows XP, Linux or Solaris running 64-bit MATLAB.
For more information on the maximum matrix size by platform, refer to the following URL:
Best Answer