Magnitude and direction from north and east components
Show older comments
I have displacement data components along north and east how to find its magnitude and direction with reference to north(0-360) in matlab. The components may have same sign or opposite both possible.
2 Comments
Deepak Gupta
on 22 Apr 2020
Hi Mithun,
Can you give sample data? And expected result.
TAPAS
on 22 Apr 2020
Accepted Answer
More Answers (1)
KSSV
on 22 Apr 2020
If (x,y) is a componenet
m = sqrt(x^2+y^2) ; % magnitude
theta = atan(y/x) ; % direction
Categories
Find more on Seismology in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!