The Matrix containing the barcode in datamatrix format. E.g. the String "DataMatrix" is encoded to the following matrix:

This can be done by a lot of generators in the internet. ( BarCodeGenerator ). But I need a matlab function.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!