%% Memory Allocation (Matlab的内存分配)
% Creating and Modifying Arrays
% When you assign a numeric or character array to a variable,
% MATLAB allocates a contiguous virtual block of memory and stores the array data in that block.
% MATLAB also stores information about the array data, such as its class and dimensions, in a separate,
% small block of memory called a header.
% (有两部分,一部分内存分配给变量代表的数组的数据,另一部分储存有数组数据的信息(),例如:class and dimensions)
% Array Headers 对于大的数据集有用
% If you add new elements to an existing array, MATLAB expands the existing array in memory in a way that keeps its storage contiguous.
% This usually requires finding a new block of memory large enough to hold the expanded array.
% MATLAB then copies the contents of the array from its original location to this new block in memory,
% adds the new elements to the array i