File Exchange

image thumbnail


version (1.37 KB) by Val Schmidt
A function to calculate the checksum for a NMEA/GPS string.


Updated 25 Apr 2012

View License

NMEA v0183 is a "standard" commonly used by GPS receivers and other marine electronics gear to report things like time, position, velocity, number of satellites seen, radar contacts and a host of other details. The standard consists of ASCII text sentences whose fields are comma delimited and whose final field is an 8 bit checksum. Given a full NMEA string (beginning with the leading $ and including the checksum), gps_chksum.m calculates the terminating checksum allowing one to verify the string has been received as it was written.


ans =


Cite As

Val Schmidt (2021). gps_chksum (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!