dist_t.m
来自「这是在uwb系统中,用TOA定位法的整个系统的仿真程序」· M 代码 · 共 5 行
M
5 行
function distn = dist_t(x,y)
% This function calculates distance between two points
% x and y is a 1 by 2 matrix which containes coordinates of two points
% Example: x (12, 26), y (5, 0);
distn = sqrt((x(1) - y(1))^2 + (x(2) - y(2))^2);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?