Clone Distributed Array

If you have Parallel Computing Toolbox™, create a 1000-by-1000 distributed array of zeros with underlying data type int8. For the distributed data type, the 'like' syntax clones the underlying data type in addition to the primary data type.

p = zeros(1000,'int8','distributed');

Create an array of zeros that is the same size, primary data type, and underlying data type as p.