%% Create ArrayDatastore Object
% Create an ArrayDatastore object from a matrix, then read all of the data in the datastore.
% Create a matrix.

A = magic(10)

% Create an ArrayDatastore object from the matrix.

arrds = arrayDatastore(A)

% Read all of the data in the datastore.

readall(arrds)

% Copyright 2020 The MathWorks, Inc.