how can I compute distances:
Afficher commentaires plus anciens
how can I compute distances:
I have a code which was running in matlab 2016:
Nat=1000;
pos=(rand(3, Nat)-0.5);
kr=dist(pos)+eye(Nat);
In my new matlab version (Matlab 2019), it seems to require an additional toolbox?
yours
Robin
Réponse acceptée
Plus de réponses (3)
Fangjun Jiang
le 27 Jan 2020
0 votes
Run the code and then run "license inuse". Only MATLAB is needed.
2 commentaires
Robin Kaiser
le 28 Jan 2020
Walter Roberson
le 28 Jan 2020
It is not a backward incompatibility. dist() was never part of basic MATLAB. You probably had some third-party dist() function.
Walter Roberson
le 27 Jan 2020
0 votes
dist() is part of the Deep Learning Toolbox
2 commentaires
Robin Kaiser
le 28 Jan 2020
Walter Roberson
le 28 Jan 2020
No, it implies you used a third-party function before.
If you want to use basic MATLAB, then
kr = squareform(pdist(pos.')) + eye(Nat);
Robin Kaiser
le 28 Jan 2020
0 votes
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!