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

📄 range.m

📁 GPS software toolbox for GPS receiver development
💻 M
字号:
%                           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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -