MATLAB Answers

Max change in z within a certain radius of a point

3 ビュー (過去 30 日間)
Michael Francis
Michael Francis 2019 年 11 月 7 日
回答済み: darova 2019 年 11 月 7 日
I’m relatively new to MATLAB and looking for some help. I have three equal sized matrices that define x, y and z. The matrices represents mapping data where x is an easting, y is a northing, and z is an elevation. x and y are set up on a regular grid (say, both 0:5:500), z is a variable (for example, survey data). For each grid point (x,y) I want to check the maximum difference in z within a given radius. Ultimately, the goal is to ascertain if there is an elevation change greater than say 6” within 20-ft.

  0 件のコメント

サインインしてコメントする。

回答 (1 件)

darova
darova 2019 年 11 月 7 日
Use logical conditions
ix = (x-x0).^2 + (y-y0).^2 < 20^2;
z(ix) % all z values around (x0,y0) r=20

  0 件のコメント

サインインしてコメントする。

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by