Javascript Get Memory Size Of Array Matlab Plot Points