How can I find dip direction and a dip of a plane with known normal vectors?

1 回表示 (過去 30 日間)
Hrvoje Lukacic
Hrvoje Lukacic 2022 年 10 月 18 日
コメント済み: Hrvoje Lukacic 2022 年 10 月 18 日
Hello. I have atxt file containing multiple colums and three of than being nx, ny, and nz?
Can you please help me on how to find a dip direction and a dip of a plane.
Note - some of my nz values are negative. Below I am posting a core that i wrote but it is not giving be good values for dip direction.
Thank you for your help
data = load('artificial_slope.txt') %loading data
% defining input values based of input txt file
nx = data(:,4)
ny = data(:,5)
nz = data(:,6)
% abs vaue of nz component to eliminite minus sign
nz_abs = abs(nz)
% dip calculation
dip_disc = acos(nz_abs)*(180/pi)
% dip direction calculation (giving wrong results)
dip_dir = (360-atan2(ny,nx) * (180/pi))-90
  2 件のコメント
KSSV
KSSV 2022 年 10 月 18 日
You have not attached the text file.
Hrvoje Lukacic
Hrvoje Lukacic 2022 年 10 月 18 日
Sorry, I am attaching it now.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by