File Applications/SpinW/m_files/sw_freemem.m gives the amount of free RAM in bytes mem = SW_FREEMEM() If it cannot determine the size of the free memory, it returns zero.