Luhn Algorithm Functions

Luhn algoritm check and computation of missing digit.

You are now following this Submission

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 (2026). Luhn Algorithm Functions (https://in.mathworks.com/matlabcentral/fileexchange/14199-luhn-algorithm-functions), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Simulink in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0