Luhn Algorithm Functions

Luhn algoritm check and computation of missing digit.
Updated 8 Mar 2007

No License

luhncheck.m will determine if the given number adheres to the Luhn algorithm.

findluhndig.m will supply a missing digit according to the Luhn algorithm.

Cite As

David Chandler (2024). Luhn Algorithm Functions (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Simulink in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes