CHECKRAM estimate if RAM will fit a new array

checks that requested memory for the new array won't exceed AVAILABLE RAM with Matlab

Contents

Inputs

Outputs

This script is optimistic as Matlab won't always be able to create an array using ALL available RAM, but at least you know when you certainly CAN'T create an array without digging deep into swap or worse.