Serial_GPS

所属分类:matlab编程
开发工具:matlab
文件大小:17KB
下载次数:11
上传日期:2009-03-26 11:12:34
上 传 者marty
说明:  Serial Application of GPS

文件列表:
Serial GPS\AbortTransfer.m (169, 2007-11-01)
Serial GPS\AnalyzeTracks.m (3729, 2007-11-01)
Serial GPS\CloseGPS.m (155, 2007-11-01)
Serial GPS\ComputeChecksum.m (298, 2007-11-01)
Serial GPS\ComputeTrackStats.m (1227, 2007-11-01)
Serial GPS\Constants.m (2049, 2007-11-01)
Serial GPS\DisplayTrack.m (915, 2007-11-01)
Serial GPS\ExpectedDataError.m (150, 2007-11-01)
Serial GPS\OpenGPS.m (1041, 2007-11-01)
Serial GPS\PlotTrack.m (107, 2007-11-01)
Serial GPS\ReadData.m (3011, 2007-11-01)
Serial GPS\ReadPacket.m (842, 2007-11-01)
Serial GPS\ReadPacketHeader.m (426, 2007-11-01)
Serial GPS\ReadPacketTerminator.m (706, 2007-11-01)
Serial GPS\ReadProductDataType.m (722, 2007-11-01)
Serial GPS\ReadProtocols.m (749, 2007-11-01)
Serial GPS\ReadRoutes.m (1300, 2007-11-01)
Serial GPS\ReadTracks.m (4101, 2007-11-01)
Serial GPS\SendBeginPacket.m (197, 2007-11-01)
Serial GPS\SendEndPacket.m (206, 2007-11-01)
Serial GPS\SendPacket.m (636, 2007-11-01)
Serial GPS\sizeof.m (876, 2007-11-01)
Serial GPS\tracklog.mat (76224, 2007-11-01)
Serial GPS\WritePacket.m (694, 2007-11-01)
Serial GPS\WritePacketHeader.m (228, 2007-11-01)
Serial GPS\WritePacketTerminator.m (743, 2007-11-01)
Serial GPS (0, 2009-03-25)

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

近期下载者

相关文件


收藏者