range.m
来自「GPS software toolbox for GPS receiver de」· M 代码 · 共 20 行
M
20 行
% range.m
% Scope: This MATLAB macro computes the range between two position points
% defined into a three-dimensional orthogonal frame.
% Usage: xout = range(x1,x2)
% Description of parameters:
% x1 - input, first position point
% x2 - input, second position point
% xout - output, range between the two defined position points
% Remarks: 1) The computation is executed when the two vectors have the same
% dimension (not only 3).
% 2) The components of the input vectors and the range should have
% the same unit, e.g. meters, feet.
% Last update: 04/21/00
% Copyright (C) 1996-00 by LL Consulting. All Rights Reserved.
function xout = range(x1,x2)
temp = x1 - x2;
xout = sqrt(temp' * temp);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?