image thumbnail
from Handling Large Data Sets Efficiently in MATLAB by Stuart McGarrity
Handling Large Data Sets Efficiently in MATLABĀ®

y=ramsize
function y=ramsize
% Returns the size of machines physical RAM in bytes

y=1250*2^20; % for 1.2GB use 1250*2^20

Contact us at files@mathworks.com