Contents

checkRAM(newSize, myclass)

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

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.

get available RAM

variable sizing