focalmech(fm, centerX, centerY, diam, varargin)

버전 (5.31 KB) 작성자: James Conder
Draw a full moment tensor focal mechanism for an earthquake

다운로드 수: 855

업데이트 날짜: 2019/9/10

라이선스 보기

Function takes 3x3 or vector of 6 independent elements of a moment tensor and plots the appropriate beachball for that earthquake
% Ryukyu Islands earthquake 4/18/2008 (from
M = [4.070 -1.830 -2.240 1.500 1.410 -1.110];
Mw = 5.0;
axis equal
% Mt. Carmel aftershock 4/18/2008
M = [ -0.754 2.250 -1.490 -0.435 -0.094 0.730 ];
Mw = 4.6;

인용 양식

James Conder (2023). focalmech(fm, centerX, centerY, diam, varargin) (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2019a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보

Added option for moment tensor to be in xyz coordinate system (default still rtf).

... and another.
Just updated the comments to include page numbers and volume of the manuscript this was published in. No changes to the code itself.

Another minor tweak for efficiency.

Improved speed by vectorizing main loop. Runs 4-10x faster than previous version.

Added optional input for text above beachball. E.g.,
>> focalmech(M,5.2,0, Mw,'text','4/18/2008')

Fix a plotting issue that arose when matlab breaks a single contour into multiple pieces.

Fixed bug that sometimes reversed color pattern for events with >40% isotropic components.

Rewrote the portion to fill the beachballs that should behave for older versions as well as the current version of MatLab (Grzegorz's comment).