distND

Below is a demonstration of the features of the distND function

Contents

clear; close all; clc;

Syntax

[D]=distND(V1,V2);

Description

A multidimensional Euclidian distance computation for the input vertices V1 and V2.

Examples

%Create points sets to compare
V1=rand(12,3);
V2=rand(5,3);

Compute all distances

D=distND(V1,V2)
D =

    0.6470    0.9451    0.7515    0.3542    0.5658
    0.7234    0.9884    0.8879    0.6783    0.8955
    0.9298    0.9228    0.6024    0.9834    0.8146
    0.9510    1.1487    0.6161    0.9501    0.8380
    0.1551    0.3115    0.8076    0.4648    0.8687
    0.8769    1.0053    0.8125    1.0337    1.0907
    0.3984    0.6650    0.9434    0.4881    0.9422
    0.3037    0.6003    0.9624    0.2751    0.8722
    0.3534    0.0644    1.1184    0.7423    1.1998
    0.9464    0.9862    0.3852    1.0065    0.7588
    0.8499    1.1032    0.4486    0.6252    0.3432
    0.5470    0.8353    0.7892    0.4500    0.7449

GIBBON www.gibboncode.org

Kevin Mattheus Moerman, [email protected]

GIBBON footer text

License: https://github.com/gibbonCode/GIBBON/blob/master/LICENSE

GIBBON: The Geometry and Image-based Bioengineering add-On. A toolbox for image segmentation, image-based modeling, meshing, and finite element analysis.

Copyright (C) 2006-2023 Kevin Mattheus Moerman and the GIBBON contributors

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.