how to calculate euclidean distance.

조회 수: 1 (최근 30일)
devendra
devendra 2015년 2월 27일
편집: devendra 2015년 2월 27일
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.

채택된 답변

Sean de Wolski
Sean de Wolski 2015년 2월 27일
Use the distance function in the Mapping Toolbox:
  댓글 수: 1
devendra
devendra 2015년 2월 27일
편집: devendra 2015년 2월 27일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by