MATLAB: Undefined function or variable ‘arrayDatastore’.

arraydatastoreMATLABundefined function or variable 'arraydatastore'.

I can run this line:
[XTrain,YTrain,anglesTrain] = digitTrain4DArrayData;
However, when I run this line
dsXTrain = arrayDatastore(XTrain,'IterationDimension',4);
It comes
Undefined function or variable 'arrayDatastore'.
So I think I dont have the function of "arrayDatastore"
I run
>> A = magic(10);
>> arrds = arrayDatastore(A);
Undefined function or variable 'arrayDatastore'.

Best Answer

arraydatastore(): https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.arraydatastore.html was introduced i R2020b. You cannot use it in R2019a.
Related Question