No, I don't think you can do that right now in matlab wrapper. There is an interface to do that in python wrapper which allows you to use MemoryDataLayer and load data from numpy array, but this feature has not been implemented in matlab wrapper yet.
To overcome, you can resort to HDF5DataLayer (store your data as .h5 file), or use python wrapper instead.