File Exchange

image thumbnail

BarCode Generator GS1-128

version 1.3.0.0 (20.8 KB) by Pedro Villena
Generate a barcode image (BMP file) using GS1-128 symbology specifications (section 5.3)

6 Downloads

Updated 08 Mar 2015

View Version History

View License

[file,text] = barCode128gen(code)
Where:
code => number or alphanumeric string.
file <= barcode image file name.
text <= standarized string code.

Example:
barCode128gen(123.123456789);
barCode128gen('(0123)0123456789');
barCode128gen('GS01-0128');

Cite As

Pedro Villena (2020). BarCode Generator GS1-128 (https://www.mathworks.com/matlabcentral/fileexchange/45062-barcode-generator-gs1-128), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

rick tsen

Rohan Sanghavi

Thanks a ton. Really helped me a lot!!! Well Done

BERGHOUT Tarek

thanks a lot

Tolga Birdal

The barcode generation for numeric-only strings fails (crashes). I tried changing line 167 to the following:

if (~isempty(idx) && idx(1)==1),

This prevents the crash, but I'm not sure if it's the correct way to handle it. Could you confirm, or suggest a better fix?

Pedro Villena

Please read the description, this barcode generator only accept codes (inputs) of number strings or alphanumeric strings, that means, it does not accept codes (inputs) with puntuation characters or special characters. Obiously. this do not fit with all the GS1-128 specification.

Ben

Does not adhere to GS01-128 specs. Buggy.

haem

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: qr code

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!