Hi,
This issue arises due to RAM Limitations.
- As you have already set the Maximum array size to 100% try running the following command in the command window to check if the available memory is greater than the required 21GB.
memory;
- Also try checking if the Java heap memory is not set to a very large value. Refer this documentation for more info.
- Try out parallel simulations if you have Parallel computation toolbox.
