Windows becomes unresponsive when trying to create large variables

When I was trying to make matlab deal with a large matrix, my whole system became unresponsive. I understand it's the memory issue, because the code worked fine when I was testing using smaller matrix. Now my question is, is there any way to make matlab give 'out of memory' error instead of freezing everyting? Or stop the code when used memory exceeds certain value?

Catégories

En savoir plus sur Performance and Memory dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by