Stuart’s MATLAB Videos

Watch and Learn

Luhn checksum implemented in MATLAB

The Luhn algorithm is a fast checksum that allows you to know if an entered series of numbers has any of the repeated digits or transpositions that are common when typing numbers in. By having a simple checksum, you can validate a number before doing a more costly database check. This video explains how to implement the algorithm. A future video will discuss a simple testing mechanism to show what failure modes go undetected by this checksum.

|
  • print

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。