Effacer les filtres
Effacer les filtres

how to calculate euclidean distance.

4 vues (au cours des 30 derniers jours)
devendra
devendra le 27 Fév 2015
Modifié(e) : devendra le 27 Fév 2015
sir if i have 3 dimensional daily data (lon,lat,time) for model and observation. i want to calculate distance between these data(grid to grid).please help me. my matrix size is (81,61,12810) for model and observation. this is daily data for jjas. thank u in advance.

Réponse acceptée

Sean de Wolski
Sean de Wolski le 27 Fév 2015
Use the distance function in the Mapping Toolbox:
  1 commentaire
devendra
devendra le 27 Fév 2015
Modifié(e) : devendra le 27 Fév 2015
this function takes one grid and calculate distance from all grids one by one but i want to calculate one grid to one grid. can u write here code for this √((x2 - x1)2 + (y2 - y1) 2 + (z2 - z2) 2 ) . please help me.... https://www.easycalculation.com/analytical/learn-distance3.php

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by