xgridw.m

来自「GPS software toolbox for GPS receiver de」· M 代码 · 共 52 行

M
52
字号
%                                xgridw.m
%  Scope:  This MATLAB program generates and plots the longitude-latitude WAAS
%          grid as specified in [1].
%  Usage:  xgridw
%  Inputs:   - selection of option to save the generated data; the mat-file 
%              fgridw.mat is the output file 
%  Outputs:  - generated latitude-longitude WAAS grid data into the specified
%              mat-file (optional)
%            - graph of the latitude-longitude WAAS grid (2353 space points)
%  Reference: 
%           [1] Anonym., Minimum operational performance standards for Global 
%               Positioning System/Wide Area Augmentation System airborne 
%               equipment. RTCA / DO-229, January 16, 1996, prepared by SC-159
%  External Matlab macros used:  gridwaas     
%  Last update:  11/04/00
%  Copyright (C) 1998-00 by LL Consulting. All Rights Reserved.

clear
yes = 'y';
close all

%  Generate the WAAS grid data

[lat,lon] = gridwaas;

%  Save the WAAS grid data (optional)

disp('  ');
answer = input('Do you to save the generated grid data (y/n)[n]?  ','s');
if isempty(answer)
   answer = 'n';
end   
if (strcmp(answer,yes) == 1)
   disp('  ');
   disp('The Latitutde-Longitude WAAS grid is saved in file latlon.mat');
   save  fgridw lat lon
end

%  Execute the graph of the WAAS grid

figure(1)
plot(lon,lat,'*'), ...
title('WAAS Longitude-Latitude grid (2353 space points)'),...
xlabel('Longitude, in degrees'),...
ylabel('Latitude, in degrees'),...
axis([0 360 0 90]);

disp(' ');
disp('End of the program  XGRIDW ');
disp(' ');

⌨️ 快捷键说明

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