readme.txt

来自「基于串行接口的GPS驱动程序」· 文本 代码 · 共 29 行

TXT
29
字号

This archive contains the code sample for the MATLAB News & Notes article entitled "Importing Data
via the Serial Object in MATLAB". Published in the May2003 issue, the article describes how to 
use MATLAB's serial object to read data from a Global Positioning Satellite device, and how to use
MATLAB to analyze that data.

Note that this example code has only been tested on the eTrex brand of GPS devices manufactured by
Garmin. 

You can run the example in one of two modes. If you have a GPS device connected to a serial port 
(for example, COM1), you can connect to that device and retrieve tracklog data stored on that device
with these MATLAB commands:

port = 'COM1';
[gps, pid, version, text, protocols] = OpenGPS(port);
tracks = ReadTracks(gps);
CloseGPS(gps);
AnalyzeTracks(tracks);

If you do not have access to a GPS device, you can still run the analysis part of the example on the
included data set with these two commands:

load tracklog
AnalyzeTracks(tracks(1));

For more detail, see the News and Notes article on the MathWorks Web site: 

http://www.mathworks.com/company/newsletter/index.shtml

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?