nmea parsing, comma seperated text and data line to space segmented reading for matlab.
4 views (last 30 days)
Show older comments
Hi.
-i have been searching for a way to get nmea data into matlab but have not found an good way yet.
-all i wish to do is to load a .log file conataing i.e:
$INGGA,185937.99,5936.222447,N,00545.775642,E,2,08,1.1,32.60,M,43.70,M,6.8,0580*61
$INVTG,177.36,T,,M,0.0,N,0.0,K,A*29
$GPGST,185937.99,1.19,1.057,0.719,166,1.041,0.742,1.93*42
and then create on matrix file for each nmea type, so all GPGST would be would be found in one matrix file, and then separate them all into there one colum based upon the , (comma) spacing for the nmea line.
thanks for all answers.
0 Comments
Answers (1)
Image Analyst
on 22 Dec 2012
I don't know what nmea or GPGST is, but if your data is so customized that it can't be read by the typical built-in functions like csvread, dlmread, textscan, etc., then you can always use fgetl() and sscanf() to extract your values.
0 Comments
See Also
Categories
Find more on Low-Level File I/O in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!