⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 基于串行接口的GPS驱动程序
💻 TXT
字号:

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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -