nmea parsing, comma seperated text and data line to space segmented reading for matlab.

3 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

Image Analyst
Image Analyst il 22 Dic 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.

Categorie

Scopri di più su Data Import and Export in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by