Fast CRC-32 calculation

version 1.0.2 (2.89 KB) by Mikhail
Calculate CRC-32 checksum of input data


Updated Tue, 18 Dec 2018 12:46:26 +0000

View License

CRC = crc32(DATA) calculates CRC-32 checksum of input data.
The elements of DATA are treated as individual bytes (uint8's). Resulting CRC is unsigned 32-bit integer (uint32).

Example: crc32(fileread('crc32.m'))

Cite As

Mikhail (2022). Fast CRC-32 calculation (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!