image thumbnail

nagyprism(x1,x2,y1,​y2,h,rho)

version 1.0.0.0 (1.88 KB) by Jack
A function file to compute Nagy prism terrain corrections

118 Downloads

Updated 26 May 2016

View License

A function to perform terrain corrections using the Nagy prism formula.
To calculate the terrain correction for a block of topography
with coordinates (x1,y1) (x2,y1) (x1,y2) (x2,y2) in the x,y plane and
height h all in metres.
.....................................................
..................__________...............
................/!.................../!↑.............
............../_!________./..!↑.............
..............!..!................!...!h ............
..............!..!................!...!↓.............
..............!..!................!...!↓.............
..............!..!................!...!↓.............
..............!..!(x1,y2).....!_.!(x2,y2)....
..............!./.................!./................
(x1,y1)...!/_________!/(x2,y1).....

with density rho in Mg/m3, the terrain correction T is given by
T = nagyprism(x1,x2,y1,y2,h,rho)

The function can also handle vectors of coordinates, x1,x2,y1,y2,h so that the total correction for multiple pieces of terrain can also be calculated at once.

Cite As

Jack (2022). nagyprism(x1,x2,y1,y2,h,rho) (https://www.mathworks.com/matlabcentral/fileexchange/57349-nagyprism-x1-x2-y1-y2-h-rho), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!