So there is this barcodes matrix
barcodes = {':…:::.:…..::::….:..::.:..:.:..:.:..:..:.::…';
':.:.:…::.:…:::….::..:.:….::…:.:…::.:..:'};
I'm trying to associate specific dots and colons to a specific numeric value to be able to read the barcode.
Given:
1 = …::
2 = ..:.:
3 = ..::.
4 = .:..:
5 = .:.:.
6 = .::..
7 = :…:
8 = :..:.
9 = :.:..
0 = ::…
How can I write a for loop function that coverts barcodes matrix into numbers?
Best Answer