db23d.m

来自「用来实现三维阻抗及光学断层成像重建的matlab程序」· M 代码 · 共 25 行

M
25
字号
function [dd] = db23d(x1,y1,z1,x2,y2,z2);
%function [dd] = db23d(x1,y1,z1,x2,y2,z2);
%
%Auxiliary function that caclulates the distance between two points in 3D
%
%
%
%(x1,y1,z1) = The coordinates of the first point in 3D
%(x2,y2,z2) = The coordinates of the second point in 3D
%dd         = Their distance

dd = sqrt((x2 - x1).^2 + (y2 - y1).^2 + (z2 - z1).^2);





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This is part of the EIDORS suite.
% Copyright (c) N. Polydorides 2001
% Copying permitted under terms of GNU GPL
% See enclosed file gpl.html for details.
% EIDORS 3D version 1.0
% MATLAB version 5.3 R11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

⌨️ 快捷键说明

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